﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Titan;
using Titan.MySql;

namespace StockMatch.Service.Entity
{
    public class EntityList<T>
    {
        private List<T> _items = new List<T>();

        public long TotalCount { get; set; }

        public List<T> Items
        {
            get { return _items; }
            set { _items = value; }
        }

    }
    /*
    <system.runtime.serialization>
        <dataContractSerializer>
          <declaredTypes>
 
          </declaredTypes>
        </dataContractSerializer>
      </system.runtime.serialization>

    */
    #region enums

    #endregion




    #region Project
    /// <summary>
    /// Project,方案表
    /// </summary>
    [Table]
    public partial class Project
    {

        public Project()
        {

            StartProjectTime = DateTime.Now;
            AddTime = DateTime.Now;

        }
        #region propertys

        /// <summary>
        /// ProjectId,主键
        /// </summary>
        [Column(IsPrimaryKey = true)]
        [MySqlColumn(IsIdentity = true)]
        public int ProjectId { get; set; }


        /// <summary>
        /// UserId,会员Id
        /// </summary>
        [Column()]
        public int UserId { get; set; }


        /// <summary>
        /// Principal,投资本金
        /// </summary>
        [Column(Size = 6)]
        public decimal Principal { get; set; }


        /// <summary>
        /// MatchEndowment,配资金额
        /// </summary>
        [Column(Size = 6)]
        public decimal MatchEndowment { get; set; }


        /// <summary>
        /// TotalTrade,总操盘资金
        /// </summary>
        [Column(Size = 6)]
        public decimal TotalTrade { get; set; }


        /// <summary>
        /// LossWarLine,亏损警告线
        /// </summary>
        [Column(Size = 6)]
        public decimal LossWarLine { get; set; }


        /// <summary>
        /// LossOpenLine,亏损平仓线
        /// </summary>
        [Column(Size = 6)]
        public decimal LossOpenLine { get; set; }


        /// <summary>
        /// FundTime,资金使用期限（按月算）
        /// </summary>
        [Column()]
        public int FundTime { get; set; }


        /// <summary>
        /// StartTime,开始交易时间
        /// </summary>
        [Column()]
        public int StartTime { get; set; }


        /// <summary>
        /// StartProjectTime,方案正式进入交易的时间
        /// </summary>
        [Column()]
        public DateTime StartProjectTime { get; set; }


        /// <summary>
        /// LoanMoon,配资借款月利率
        /// </summary>
        [Column(Size = 6)]
        public decimal LoanMoon { get; set; }


        /// <summary>
        /// AddTime,方案发布时间
        /// </summary>
        [Column()]
        public DateTime AddTime { get; set; }


        /// <summary>
        /// ProjectState,方案状态
        /// 1=正在验资中
        /// 3=正在开户中
        /// 5=正在操盘中
        /// 7=亏损警告
        /// 9=平仓
        /// 11=提交终止操盘
        /// 13=已终止操盘
        /// 15=已结算
        /// </summary>
        [Column()]
        public int ProjectState { get; set; }


        /// <summary>
        /// TradingAccount,交易账号
        /// </summary>
        [Column(Size = 30)]
        public string TradingAccount { get; set; }


        /// <summary>
        /// TradingPassword,交易密码
        /// </summary>
        [Column(Size = 30)]
        public string TradingPassword { get; set; }


        /// <summary>
        /// Proportion,盈利比例，多少返还
        /// </summary>
        [Column(Size = 6)]
        public decimal Proportion { get; set; }


        /// <summary>
        /// ProjectNumber,方案号
        /// </summary>
        [Column(Size = 20)]
        public string ProjectNumber { get; set; }


        /// <summary>
        /// SettlementAmount,结算金额
        /// </summary>
        [Column(Size = 6)]
        public decimal? SettlementAmount { get; set; }


        #endregion

        #region link objects

        /// <summary>
        /// Project.User,
        /// </summary>
        [Relation("this.UserId=out.UserId")]
        public User User { get; set; }



        #endregion
    }
    #endregion
    #region ProjectProperties
    public static partial class Project_
    {

        private static ProjectDescriptor instance = new ProjectDescriptor("");

        /// <summary>
        /// 全部字段
        /// </summary>
        public static PropertyExpression[] ALL { get { return instance.ALL; } }


        /// <summary>
        /// ProjectId,主键
        /// </summary>
        public static PropertyExpression ProjectId { get { return instance.ProjectId; } }
        /// <summary>
        /// UserId,会员Id
        /// </summary>
        public static PropertyExpression UserId { get { return instance.UserId; } }
        /// <summary>
        /// Principal,投资本金
        /// </summary>
        public static PropertyExpression Principal { get { return instance.Principal; } }
        /// <summary>
        /// MatchEndowment,配资金额
        /// </summary>
        public static PropertyExpression MatchEndowment { get { return instance.MatchEndowment; } }
        /// <summary>
        /// TotalTrade,总操盘资金
        /// </summary>
        public static PropertyExpression TotalTrade { get { return instance.TotalTrade; } }
        /// <summary>
        /// LossWarLine,亏损警告线
        /// </summary>
        public static PropertyExpression LossWarLine { get { return instance.LossWarLine; } }
        /// <summary>
        /// LossOpenLine,亏损平仓线
        /// </summary>
        public static PropertyExpression LossOpenLine { get { return instance.LossOpenLine; } }
        /// <summary>
        /// FundTime,资金使用期限（按月算）
        /// </summary>
        public static PropertyExpression FundTime { get { return instance.FundTime; } }
        /// <summary>
        /// StartTime,开始交易时间
        /// </summary>
        public static PropertyExpression StartTime { get { return instance.StartTime; } }
        /// <summary>
        /// StartProjectTime,方案正式进入交易的时间
        /// </summary>
        public static PropertyExpression StartProjectTime { get { return instance.StartProjectTime; } }
        /// <summary>
        /// LoanMoon,配资借款月利率
        /// </summary>
        public static PropertyExpression LoanMoon { get { return instance.LoanMoon; } }
        /// <summary>
        /// AddTime,方案发布时间
        /// </summary>
        public static PropertyExpression AddTime { get { return instance.AddTime; } }
        /// <summary>
        /// ProjectState,方案状态
        /// 1=正在验资中
        /// 3=正在开户中
        /// 5=正在操盘中
        /// 7=亏损警告
        /// 9=平仓
        /// 11=提交终止操盘
        /// 13=已终止操盘
        /// 15=已结算
        /// </summary>
        public static PropertyExpression ProjectState { get { return instance.ProjectState; } }
        /// <summary>
        /// TradingAccount,交易账号
        /// </summary>
        public static PropertyExpression TradingAccount { get { return instance.TradingAccount; } }
        /// <summary>
        /// TradingPassword,交易密码
        /// </summary>
        public static PropertyExpression TradingPassword { get { return instance.TradingPassword; } }
        /// <summary>
        /// Proportion,盈利比例，多少返还
        /// </summary>
        public static PropertyExpression Proportion { get { return instance.Proportion; } }
        /// <summary>
        /// ProjectNumber,方案号
        /// </summary>
        public static PropertyExpression ProjectNumber { get { return instance.ProjectNumber; } }
        /// <summary>
        /// SettlementAmount,结算金额
        /// </summary>
        public static PropertyExpression SettlementAmount { get { return instance.SettlementAmount; } }



        /// <summary>
        /// Project.User,
        /// </summary>
        public static UserDescriptor User { get { return instance.User; } }

        public static IEnumerable<PropertyExpression> Exclude(params PropertyExpression[] properties)
        {
            return instance.Exclude(properties);
        }

    }
    #endregion
    #region ProjectDescriptor
    public partial class ProjectDescriptor : ObjectDescriptorBase
    {

        public ProjectDescriptor(string prefix)
            : base(prefix)
        {

            this._ProjectId = new PropertyExpression(prefix + "ProjectId");
            this._UserId = new PropertyExpression(prefix + "UserId");
            this._Principal = new PropertyExpression(prefix + "Principal");
            this._MatchEndowment = new PropertyExpression(prefix + "MatchEndowment");
            this._TotalTrade = new PropertyExpression(prefix + "TotalTrade");
            this._LossWarLine = new PropertyExpression(prefix + "LossWarLine");
            this._LossOpenLine = new PropertyExpression(prefix + "LossOpenLine");
            this._FundTime = new PropertyExpression(prefix + "FundTime");
            this._StartTime = new PropertyExpression(prefix + "StartTime");
            this._StartProjectTime = new PropertyExpression(prefix + "StartProjectTime");
            this._LoanMoon = new PropertyExpression(prefix + "LoanMoon");
            this._AddTime = new PropertyExpression(prefix + "AddTime");
            this._ProjectState = new PropertyExpression(prefix + "ProjectState");
            this._TradingAccount = new PropertyExpression(prefix + "TradingAccount");
            this._TradingPassword = new PropertyExpression(prefix + "TradingPassword");
            this._Proportion = new PropertyExpression(prefix + "Proportion");
            this._ProjectNumber = new PropertyExpression(prefix + "ProjectNumber");
            this._SettlementAmount = new PropertyExpression(prefix + "SettlementAmount");
            ALL = new PropertyExpression[] { this._ProjectId, this._UserId, this._Principal, this._MatchEndowment, this._TotalTrade, this._LossWarLine, this._LossOpenLine, this._FundTime, this._StartTime, this._StartProjectTime, this._LoanMoon, this._AddTime, this._ProjectState, this._TradingAccount, this._TradingPassword, this._Proportion, this._ProjectNumber, this._SettlementAmount };
        }


        private PropertyExpression _ProjectId;
        /// <summary>
        /// ProjectId,主键
        /// </summary>
        public PropertyExpression ProjectId { get { return _ProjectId; } }
        private PropertyExpression _UserId;
        /// <summary>
        /// UserId,会员Id
        /// </summary>
        public PropertyExpression UserId { get { return _UserId; } }
        private PropertyExpression _Principal;
        /// <summary>
        /// Principal,投资本金
        /// </summary>
        public PropertyExpression Principal { get { return _Principal; } }
        private PropertyExpression _MatchEndowment;
        /// <summary>
        /// MatchEndowment,配资金额
        /// </summary>
        public PropertyExpression MatchEndowment { get { return _MatchEndowment; } }
        private PropertyExpression _TotalTrade;
        /// <summary>
        /// TotalTrade,总操盘资金
        /// </summary>
        public PropertyExpression TotalTrade { get { return _TotalTrade; } }
        private PropertyExpression _LossWarLine;
        /// <summary>
        /// LossWarLine,亏损警告线
        /// </summary>
        public PropertyExpression LossWarLine { get { return _LossWarLine; } }
        private PropertyExpression _LossOpenLine;
        /// <summary>
        /// LossOpenLine,亏损平仓线
        /// </summary>
        public PropertyExpression LossOpenLine { get { return _LossOpenLine; } }
        private PropertyExpression _FundTime;
        /// <summary>
        /// FundTime,资金使用期限（按月算）
        /// </summary>
        public PropertyExpression FundTime { get { return _FundTime; } }
        private PropertyExpression _StartTime;
        /// <summary>
        /// StartTime,开始交易时间
        /// </summary>
        public PropertyExpression StartTime { get { return _StartTime; } }
        private PropertyExpression _StartProjectTime;
        /// <summary>
        /// StartProjectTime,方案正式进入交易的时间
        /// </summary>
        public PropertyExpression StartProjectTime { get { return _StartProjectTime; } }
        private PropertyExpression _LoanMoon;
        /// <summary>
        /// LoanMoon,配资借款月利率
        /// </summary>
        public PropertyExpression LoanMoon { get { return _LoanMoon; } }
        private PropertyExpression _AddTime;
        /// <summary>
        /// AddTime,方案发布时间
        /// </summary>
        public PropertyExpression AddTime { get { return _AddTime; } }
        private PropertyExpression _ProjectState;
        /// <summary>
        /// ProjectState,方案状态
        /// 1=正在验资中
        /// 3=正在开户中
        /// 5=正在操盘中
        /// 7=亏损警告
        /// 9=平仓
        /// 11=提交终止操盘
        /// 13=已终止操盘
        /// 15=已结算
        /// </summary>
        public PropertyExpression ProjectState { get { return _ProjectState; } }
        private PropertyExpression _TradingAccount;
        /// <summary>
        /// TradingAccount,交易账号
        /// </summary>
        public PropertyExpression TradingAccount { get { return _TradingAccount; } }
        private PropertyExpression _TradingPassword;
        /// <summary>
        /// TradingPassword,交易密码
        /// </summary>
        public PropertyExpression TradingPassword { get { return _TradingPassword; } }
        private PropertyExpression _Proportion;
        /// <summary>
        /// Proportion,盈利比例，多少返还
        /// </summary>
        public PropertyExpression Proportion { get { return _Proportion; } }
        private PropertyExpression _ProjectNumber;
        /// <summary>
        /// ProjectNumber,方案号
        /// </summary>
        public PropertyExpression ProjectNumber { get { return _ProjectNumber; } }
        private PropertyExpression _SettlementAmount;
        /// <summary>
        /// SettlementAmount,结算金额
        /// </summary>
        public PropertyExpression SettlementAmount { get { return _SettlementAmount; } }



        private UserDescriptor _User;
        public UserDescriptor User
        {
            get
            {
                if (_User == null) _User = new UserDescriptor(base.Prefix + "User.");
                return _User;
            }
        }
    }
    #endregion


    #region Projects
    /// <summary>
    /// Project,方案表
    /// </summary>
    [Table]
    public partial class Projects : EntityList<Project>
    {

    }
    #endregion


    #region ProjectSetting
    /// <summary>
    /// ProjectSetting,方案配置
    /// </summary>
    [Table]
    public partial class ProjectSetting
    {

        public ProjectSetting()
        {


        }
        #region propertys

        /// <summary>
        /// ProjectSettingId,主键
        /// </summary>
        [Column(IsPrimaryKey = true)]
        [MySqlColumn(IsIdentity = true)]
        public int ProjectSettingId { get; set; }


        /// <summary>
        /// LoanMoon,配资借款月利率
        /// </summary>
        [Column(Size = 6)]
        public decimal LoanMoon { get; set; }


        /// <summary>
        /// DayWinMoney,天天赢账号管理费
        /// </summary>
        [Column(Size = 6)]
        public decimal DayWinMoney { get; set; }


        /// <summary>
        /// WeekWinMoney,周周盈帐号管理费
        /// </summary>
        [Column(Size = 6)]
        public decimal WeekWinMoney { get; set; }


        #endregion

    }
    #endregion
    #region ProjectSettingProperties
    public static partial class ProjectSetting_
    {

        private static ProjectSettingDescriptor instance = new ProjectSettingDescriptor("");

        /// <summary>
        /// 全部字段
        /// </summary>
        public static PropertyExpression[] ALL { get { return instance.ALL; } }


        /// <summary>
        /// ProjectSettingId,主键
        /// </summary>
        public static PropertyExpression ProjectSettingId { get { return instance.ProjectSettingId; } }
        /// <summary>
        /// LoanMoon,配资借款月利率
        /// </summary>
        public static PropertyExpression LoanMoon { get { return instance.LoanMoon; } }
        /// <summary>
        /// DayWinMoney,天天赢账号管理费
        /// </summary>
        public static PropertyExpression DayWinMoney { get { return instance.DayWinMoney; } }
        /// <summary>
        /// WeekWinMoney,周周盈帐号管理费
        /// </summary>
        public static PropertyExpression WeekWinMoney { get { return instance.WeekWinMoney; } }




        public static IEnumerable<PropertyExpression> Exclude(params PropertyExpression[] properties)
        {
            return instance.Exclude(properties);
        }

    }
    #endregion
    #region ProjectSettingDescriptor
    public partial class ProjectSettingDescriptor : ObjectDescriptorBase
    {

        public ProjectSettingDescriptor(string prefix)
            : base(prefix)
        {

            this._ProjectSettingId = new PropertyExpression(prefix + "ProjectSettingId");
            this._LoanMoon = new PropertyExpression(prefix + "LoanMoon");
            this._DayWinMoney = new PropertyExpression(prefix + "DayWinMoney");
            this._WeekWinMoney = new PropertyExpression(prefix + "WeekWinMoney");
            ALL = new PropertyExpression[] { this._ProjectSettingId, this._LoanMoon, this._DayWinMoney, this._WeekWinMoney };
        }


        private PropertyExpression _ProjectSettingId;
        /// <summary>
        /// ProjectSettingId,主键
        /// </summary>
        public PropertyExpression ProjectSettingId { get { return _ProjectSettingId; } }
        private PropertyExpression _LoanMoon;
        /// <summary>
        /// LoanMoon,配资借款月利率
        /// </summary>
        public PropertyExpression LoanMoon { get { return _LoanMoon; } }
        private PropertyExpression _DayWinMoney;
        /// <summary>
        /// DayWinMoney,天天赢账号管理费
        /// </summary>
        public PropertyExpression DayWinMoney { get { return _DayWinMoney; } }
        private PropertyExpression _WeekWinMoney;
        /// <summary>
        /// WeekWinMoney,周周盈帐号管理费
        /// </summary>
        public PropertyExpression WeekWinMoney { get { return _WeekWinMoney; } }



    }
    #endregion


    #region ProjectSettings
    /// <summary>
    /// ProjectSetting,方案配置
    /// </summary>
    [Table]
    public partial class ProjectSettings : EntityList<ProjectSetting>
    {

    }
    #endregion


    #region DayWinProject
    /// <summary>
    /// DayWinProject,天天盈方案表
    /// </summary>
    [Table]
    public partial class DayWinProject
    {

        public DayWinProject()
        {

            StartProjectTime = DateTime.Now;
            AddTime = DateTime.Now;

        }
        #region propertys

        /// <summary>
        /// ProjectId,主键
        /// </summary>
        [Column(IsPrimaryKey = true)]
        [MySqlColumn(IsIdentity = true)]
        public int ProjectId { get; set; }


        /// <summary>
        /// UserId,会员Id
        /// </summary>
        [Column()]
        public int UserId { get; set; }


        /// <summary>
        /// FirmCapital,实盘资金
        /// </summary>
        [Column(Size = 6)]
        public decimal FirmCapital { get; set; }


        /// <summary>
        /// lever,风险保证金
        /// </summary>
        [Column()]
        public int lever { get; set; }


        /// <summary>
        /// RiskMargin,风险保证金
        /// </summary>
        [Column(Size = 6)]
        public decimal RiskMargin { get; set; }


        /// <summary>
        /// TotalTrade,总操盘资金
        /// </summary>
        [Column(Size = 6)]
        public decimal TotalTrade { get; set; }


        /// <summary>
        /// LossWarLine,亏损警告线
        /// </summary>
        [Column(Size = 6)]
        public decimal LossWarLine { get; set; }


        /// <summary>
        /// LossOpenLine,亏损平仓线
        /// </summary>
        [Column(Size = 6)]
        public decimal LossOpenLine { get; set; }


        /// <summary>
        /// FundTime,资金使用期限（按天算）
        /// </summary>
        [Column()]
        public int FundTime { get; set; }


        /// <summary>
        /// ManageMoney,账号管理费
        /// </summary>
        [Column(Size = 6)]
        public decimal ManageMoney { get; set; }


        /// <summary>
        /// StartTime,开始交易时间
        /// </summary>
        [Column()]
        public int StartTime { get; set; }


        /// <summary>
        /// StartProjectTime,方案正式进入交易的时间
        /// </summary>
        [Column()]
        public DateTime StartProjectTime { get; set; }


        /// <summary>
        /// IsFree,是否是免费体验
        /// </summary>
        [Column()]
        public bool IsFree { get; set; }


        /// <summary>
        /// Proportion,盈利比例，多少返还
        /// </summary>
        [Column(Size = 6)]
        public decimal Proportion { get; set; }


        /// <summary>
        /// AddTime,方案发布时间
        /// </summary>
        [Column()]
        public DateTime AddTime { get; set; }


        /// <summary>
        /// ProjectState,方案状态
        /// 1=正在验资中
        /// 3=正在开户中
        /// 5=正在操盘中
        /// 7=亏损警告
        /// 9=平仓
        /// 11=提交终止操盘
        /// 13=已终止操盘 
        /// 15=已结算
        /// </summary>
        [Column()]
        public int ProjectState { get; set; }


        /// <summary>
        /// TradingAccount,交易账号
        /// </summary>
        [Column(Size = 30)]
        public string TradingAccount { get; set; }


        /// <summary>
        /// TradingPassword,交易密码
        /// </summary>
        [Column(Size = 30)]
        public string TradingPassword { get; set; }


        /// <summary>
        /// ProjectNumber,方案号
        /// </summary>
        [Column(Size = 20)]
        public string ProjectNumber { get; set; }


        /// <summary>
        /// SettlementAmount,结算金额
        /// </summary>
        [Column(Size = 6)]
        public decimal? SettlementAmount { get; set; }


        #endregion

        #region link objects

        /// <summary>
        /// DayWinProject.User,
        /// </summary>
        [Relation("this.UserId=out.UserId")]
        public User User { get; set; }



        #endregion
    }
    #endregion
    #region DayWinProjectProperties
    public static partial class DayWinProject_
    {

        private static DayWinProjectDescriptor instance = new DayWinProjectDescriptor("");

        /// <summary>
        /// 全部字段
        /// </summary>
        public static PropertyExpression[] ALL { get { return instance.ALL; } }


        /// <summary>
        /// ProjectId,主键
        /// </summary>
        public static PropertyExpression ProjectId { get { return instance.ProjectId; } }
        /// <summary>
        /// UserId,会员Id
        /// </summary>
        public static PropertyExpression UserId { get { return instance.UserId; } }
        /// <summary>
        /// FirmCapital,实盘资金
        /// </summary>
        public static PropertyExpression FirmCapital { get { return instance.FirmCapital; } }
        /// <summary>
        /// lever,风险保证金
        /// </summary>
        public static PropertyExpression lever { get { return instance.lever; } }
        /// <summary>
        /// RiskMargin,风险保证金
        /// </summary>
        public static PropertyExpression RiskMargin { get { return instance.RiskMargin; } }
        /// <summary>
        /// TotalTrade,总操盘资金
        /// </summary>
        public static PropertyExpression TotalTrade { get { return instance.TotalTrade; } }
        /// <summary>
        /// LossWarLine,亏损警告线
        /// </summary>
        public static PropertyExpression LossWarLine { get { return instance.LossWarLine; } }
        /// <summary>
        /// LossOpenLine,亏损平仓线
        /// </summary>
        public static PropertyExpression LossOpenLine { get { return instance.LossOpenLine; } }
        /// <summary>
        /// FundTime,资金使用期限（按天算）
        /// </summary>
        public static PropertyExpression FundTime { get { return instance.FundTime; } }
        /// <summary>
        /// ManageMoney,账号管理费
        /// </summary>
        public static PropertyExpression ManageMoney { get { return instance.ManageMoney; } }
        /// <summary>
        /// StartTime,开始交易时间
        /// </summary>
        public static PropertyExpression StartTime { get { return instance.StartTime; } }
        /// <summary>
        /// StartProjectTime,方案正式进入交易的时间
        /// </summary>
        public static PropertyExpression StartProjectTime { get { return instance.StartProjectTime; } }
        /// <summary>
        /// IsFree,是否是免费体验
        /// </summary>
        public static PropertyExpression IsFree { get { return instance.IsFree; } }
        /// <summary>
        /// Proportion,盈利比例，多少返还
        /// </summary>
        public static PropertyExpression Proportion { get { return instance.Proportion; } }
        /// <summary>
        /// AddTime,方案发布时间
        /// </summary>
        public static PropertyExpression AddTime { get { return instance.AddTime; } }
        /// <summary>
        /// ProjectState,方案状态
        /// 1=正在验资中
        /// 3=正在开户中
        /// 5=正在操盘中
        /// 7=亏损警告
        /// 9=平仓
        /// 11=提交终止操盘
        /// 13=已终止操盘 
        /// 15=已结算
        /// </summary>
        public static PropertyExpression ProjectState { get { return instance.ProjectState; } }
        /// <summary>
        /// TradingAccount,交易账号
        /// </summary>
        public static PropertyExpression TradingAccount { get { return instance.TradingAccount; } }
        /// <summary>
        /// TradingPassword,交易密码
        /// </summary>
        public static PropertyExpression TradingPassword { get { return instance.TradingPassword; } }
        /// <summary>
        /// ProjectNumber,方案号
        /// </summary>
        public static PropertyExpression ProjectNumber { get { return instance.ProjectNumber; } }
        /// <summary>
        /// SettlementAmount,结算金额
        /// </summary>
        public static PropertyExpression SettlementAmount { get { return instance.SettlementAmount; } }



        /// <summary>
        /// DayWinProject.User,
        /// </summary>
        public static UserDescriptor User { get { return instance.User; } }

        public static IEnumerable<PropertyExpression> Exclude(params PropertyExpression[] properties)
        {
            return instance.Exclude(properties);
        }

    }
    #endregion
    #region DayWinProjectDescriptor
    public partial class DayWinProjectDescriptor : ObjectDescriptorBase
    {

        public DayWinProjectDescriptor(string prefix)
            : base(prefix)
        {

            this._ProjectId = new PropertyExpression(prefix + "ProjectId");
            this._UserId = new PropertyExpression(prefix + "UserId");
            this._FirmCapital = new PropertyExpression(prefix + "FirmCapital");
            this._lever = new PropertyExpression(prefix + "lever");
            this._RiskMargin = new PropertyExpression(prefix + "RiskMargin");
            this._TotalTrade = new PropertyExpression(prefix + "TotalTrade");
            this._LossWarLine = new PropertyExpression(prefix + "LossWarLine");
            this._LossOpenLine = new PropertyExpression(prefix + "LossOpenLine");
            this._FundTime = new PropertyExpression(prefix + "FundTime");
            this._ManageMoney = new PropertyExpression(prefix + "ManageMoney");
            this._StartTime = new PropertyExpression(prefix + "StartTime");
            this._StartProjectTime = new PropertyExpression(prefix + "StartProjectTime");
            this._IsFree = new PropertyExpression(prefix + "IsFree");
            this._Proportion = new PropertyExpression(prefix + "Proportion");
            this._AddTime = new PropertyExpression(prefix + "AddTime");
            this._ProjectState = new PropertyExpression(prefix + "ProjectState");
            this._TradingAccount = new PropertyExpression(prefix + "TradingAccount");
            this._TradingPassword = new PropertyExpression(prefix + "TradingPassword");
            this._ProjectNumber = new PropertyExpression(prefix + "ProjectNumber");
            this._SettlementAmount = new PropertyExpression(prefix + "SettlementAmount");
            ALL = new PropertyExpression[] { this._ProjectId, this._UserId, this._FirmCapital, this._lever, this._RiskMargin, this._TotalTrade, this._LossWarLine, this._LossOpenLine, this._FundTime, this._ManageMoney, this._StartTime, this._StartProjectTime, this._IsFree, this._Proportion, this._AddTime, this._ProjectState, this._TradingAccount, this._TradingPassword, this._ProjectNumber, this._SettlementAmount };
        }


        private PropertyExpression _ProjectId;
        /// <summary>
        /// ProjectId,主键
        /// </summary>
        public PropertyExpression ProjectId { get { return _ProjectId; } }
        private PropertyExpression _UserId;
        /// <summary>
        /// UserId,会员Id
        /// </summary>
        public PropertyExpression UserId { get { return _UserId; } }
        private PropertyExpression _FirmCapital;
        /// <summary>
        /// FirmCapital,实盘资金
        /// </summary>
        public PropertyExpression FirmCapital { get { return _FirmCapital; } }
        private PropertyExpression _lever;
        /// <summary>
        /// lever,风险保证金
        /// </summary>
        public PropertyExpression lever { get { return _lever; } }
        private PropertyExpression _RiskMargin;
        /// <summary>
        /// RiskMargin,风险保证金
        /// </summary>
        public PropertyExpression RiskMargin { get { return _RiskMargin; } }
        private PropertyExpression _TotalTrade;
        /// <summary>
        /// TotalTrade,总操盘资金
        /// </summary>
        public PropertyExpression TotalTrade { get { return _TotalTrade; } }
        private PropertyExpression _LossWarLine;
        /// <summary>
        /// LossWarLine,亏损警告线
        /// </summary>
        public PropertyExpression LossWarLine { get { return _LossWarLine; } }
        private PropertyExpression _LossOpenLine;
        /// <summary>
        /// LossOpenLine,亏损平仓线
        /// </summary>
        public PropertyExpression LossOpenLine { get { return _LossOpenLine; } }
        private PropertyExpression _FundTime;
        /// <summary>
        /// FundTime,资金使用期限（按天算）
        /// </summary>
        public PropertyExpression FundTime { get { return _FundTime; } }
        private PropertyExpression _ManageMoney;
        /// <summary>
        /// ManageMoney,账号管理费
        /// </summary>
        public PropertyExpression ManageMoney { get { return _ManageMoney; } }
        private PropertyExpression _StartTime;
        /// <summary>
        /// StartTime,开始交易时间
        /// </summary>
        public PropertyExpression StartTime { get { return _StartTime; } }
        private PropertyExpression _StartProjectTime;
        /// <summary>
        /// StartProjectTime,方案正式进入交易的时间
        /// </summary>
        public PropertyExpression StartProjectTime { get { return _StartProjectTime; } }
        private PropertyExpression _IsFree;
        /// <summary>
        /// IsFree,是否是免费体验
        /// </summary>
        public PropertyExpression IsFree { get { return _IsFree; } }
        private PropertyExpression _Proportion;
        /// <summary>
        /// Proportion,盈利比例，多少返还
        /// </summary>
        public PropertyExpression Proportion { get { return _Proportion; } }
        private PropertyExpression _AddTime;
        /// <summary>
        /// AddTime,方案发布时间
        /// </summary>
        public PropertyExpression AddTime { get { return _AddTime; } }
        private PropertyExpression _ProjectState;
        /// <summary>
        /// ProjectState,方案状态
        /// 1=正在验资中
        /// 3=正在开户中
        /// 5=正在操盘中
        /// 7=亏损警告
        /// 9=平仓
        /// 11=提交终止操盘
        /// 13=已终止操盘 
        /// 15=已结算
        /// </summary>
        public PropertyExpression ProjectState { get { return _ProjectState; } }
        private PropertyExpression _TradingAccount;
        /// <summary>
        /// TradingAccount,交易账号
        /// </summary>
        public PropertyExpression TradingAccount { get { return _TradingAccount; } }
        private PropertyExpression _TradingPassword;
        /// <summary>
        /// TradingPassword,交易密码
        /// </summary>
        public PropertyExpression TradingPassword { get { return _TradingPassword; } }
        private PropertyExpression _ProjectNumber;
        /// <summary>
        /// ProjectNumber,方案号
        /// </summary>
        public PropertyExpression ProjectNumber { get { return _ProjectNumber; } }
        private PropertyExpression _SettlementAmount;
        /// <summary>
        /// SettlementAmount,结算金额
        /// </summary>
        public PropertyExpression SettlementAmount { get { return _SettlementAmount; } }



        private UserDescriptor _User;
        public UserDescriptor User
        {
            get
            {
                if (_User == null) _User = new UserDescriptor(base.Prefix + "User.");
                return _User;
            }
        }
    }
    #endregion


    #region DayWinProjects
    /// <summary>
    /// DayWinProject,天天盈方案表
    /// </summary>
    [Table]
    public partial class DayWinProjects : EntityList<DayWinProject>
    {

    }
    #endregion


    #region WeekWinProject
    /// <summary>
    /// WeekWinProject,周周盈方案表
    /// </summary>
    [Table]
    public partial class WeekWinProject
    {

        public WeekWinProject()
        {

            StartProjectTime = DateTime.Now;
            AddTime = DateTime.Now;

        }
        #region propertys

        /// <summary>
        /// ProjectId,主键
        /// </summary>
        [Column(IsPrimaryKey = true)]
        [MySqlColumn(IsIdentity = true)]
        public int ProjectId { get; set; }


        /// <summary>
        /// UserId,会员Id
        /// </summary>
        [Column()]
        public int UserId { get; set; }


        /// <summary>
        /// FirmCapital,实盘资金
        /// </summary>
        [Column(Size = 6)]
        public decimal FirmCapital { get; set; }


        /// <summary>
        /// RiskMargin,风险保证金
        /// </summary>
        [Column(Size = 6)]
        public decimal RiskMargin { get; set; }


        /// <summary>
        /// TotalTrade,总操盘资金
        /// </summary>
        [Column(Size = 6)]
        public decimal TotalTrade { get; set; }


        /// <summary>
        /// LossWarLine,亏损警告线
        /// </summary>
        [Column(Size = 6)]
        public decimal LossWarLine { get; set; }


        /// <summary>
        /// LossOpenLine,亏损平仓线
        /// </summary>
        [Column(Size = 6)]
        public decimal LossOpenLine { get; set; }


        /// <summary>
        /// FundTime,资金使用期限（按天算）
        /// </summary>
        [Column()]
        public int FundTime { get; set; }


        /// <summary>
        /// ManageMoney,账号管理费
        /// </summary>
        [Column(Size = 6)]
        public decimal ManageMoney { get; set; }


        /// <summary>
        /// StartProjectTime,方案正式进入交易的时间
        /// </summary>
        [Column()]
        public DateTime StartProjectTime { get; set; }


        /// <summary>
        /// StartTime,开始交易时间
        /// </summary>
        [Column()]
        public int StartTime { get; set; }


        /// <summary>
        /// AddTime,方案发布时间
        /// </summary>
        [Column()]
        public DateTime AddTime { get; set; }


        /// <summary>
        /// ProjectState,方案状态
        /// 1=正在验资中
        /// 3=正在开户中
        /// 5=正在操盘中
        /// 7=亏损警告
        /// 9=平仓
        /// 11=提交终止操盘
        /// 13=已终止操盘 
        /// 15=已结算
        /// </summary>
        [Column()]
        public int ProjectState { get; set; }


        /// <summary>
        /// TradingAccount,交易账号
        /// </summary>
        [Column(Size = 30)]
        public string TradingAccount { get; set; }


        /// <summary>
        /// TradingPassword,交易密码
        /// </summary>
        [Column(Size = 30)]
        public string TradingPassword { get; set; }


        /// <summary>
        /// Proportion,盈利比例，多少返还
        /// </summary>
        [Column(Size = 6)]
        public decimal Proportion { get; set; }


        /// <summary>
        /// ProjectNumber,方案号
        /// </summary>
        [Column(Size = 20)]
        public string ProjectNumber { get; set; }


        /// <summary>
        /// SettlementAmount,结算金额
        /// </summary>
        [Column(Size = 6)]
        public decimal? SettlementAmount { get; set; }


        #endregion

        #region link objects

        /// <summary>
        /// WeekWinProject.User,
        /// </summary>
        [Relation("this.UserId=out.UserId")]
        public User User { get; set; }



        #endregion
    }
    #endregion
    #region WeekWinProjectProperties
    public static partial class WeekWinProject_
    {

        private static WeekWinProjectDescriptor instance = new WeekWinProjectDescriptor("");

        /// <summary>
        /// 全部字段
        /// </summary>
        public static PropertyExpression[] ALL { get { return instance.ALL; } }


        /// <summary>
        /// ProjectId,主键
        /// </summary>
        public static PropertyExpression ProjectId { get { return instance.ProjectId; } }
        /// <summary>
        /// UserId,会员Id
        /// </summary>
        public static PropertyExpression UserId { get { return instance.UserId; } }
        /// <summary>
        /// FirmCapital,实盘资金
        /// </summary>
        public static PropertyExpression FirmCapital { get { return instance.FirmCapital; } }
        /// <summary>
        /// RiskMargin,风险保证金
        /// </summary>
        public static PropertyExpression RiskMargin { get { return instance.RiskMargin; } }
        /// <summary>
        /// TotalTrade,总操盘资金
        /// </summary>
        public static PropertyExpression TotalTrade { get { return instance.TotalTrade; } }
        /// <summary>
        /// LossWarLine,亏损警告线
        /// </summary>
        public static PropertyExpression LossWarLine { get { return instance.LossWarLine; } }
        /// <summary>
        /// LossOpenLine,亏损平仓线
        /// </summary>
        public static PropertyExpression LossOpenLine { get { return instance.LossOpenLine; } }
        /// <summary>
        /// FundTime,资金使用期限（按天算）
        /// </summary>
        public static PropertyExpression FundTime { get { return instance.FundTime; } }
        /// <summary>
        /// ManageMoney,账号管理费
        /// </summary>
        public static PropertyExpression ManageMoney { get { return instance.ManageMoney; } }
        /// <summary>
        /// StartProjectTime,方案正式进入交易的时间
        /// </summary>
        public static PropertyExpression StartProjectTime { get { return instance.StartProjectTime; } }
        /// <summary>
        /// StartTime,开始交易时间
        /// </summary>
        public static PropertyExpression StartTime { get { return instance.StartTime; } }
        /// <summary>
        /// AddTime,方案发布时间
        /// </summary>
        public static PropertyExpression AddTime { get { return instance.AddTime; } }
        /// <summary>
        /// ProjectState,方案状态
        /// 1=正在验资中
        /// 3=正在开户中
        /// 5=正在操盘中
        /// 7=亏损警告
        /// 9=平仓
        /// 11=提交终止操盘
        /// 13=已终止操盘 
        /// 15=已结算
        /// </summary>
        public static PropertyExpression ProjectState { get { return instance.ProjectState; } }
        /// <summary>
        /// TradingAccount,交易账号
        /// </summary>
        public static PropertyExpression TradingAccount { get { return instance.TradingAccount; } }
        /// <summary>
        /// TradingPassword,交易密码
        /// </summary>
        public static PropertyExpression TradingPassword { get { return instance.TradingPassword; } }
        /// <summary>
        /// Proportion,盈利比例，多少返还
        /// </summary>
        public static PropertyExpression Proportion { get { return instance.Proportion; } }
        /// <summary>
        /// ProjectNumber,方案号
        /// </summary>
        public static PropertyExpression ProjectNumber { get { return instance.ProjectNumber; } }
        /// <summary>
        /// SettlementAmount,结算金额
        /// </summary>
        public static PropertyExpression SettlementAmount { get { return instance.SettlementAmount; } }



        /// <summary>
        /// WeekWinProject.User,
        /// </summary>
        public static UserDescriptor User { get { return instance.User; } }

        public static IEnumerable<PropertyExpression> Exclude(params PropertyExpression[] properties)
        {
            return instance.Exclude(properties);
        }

    }
    #endregion
    #region WeekWinProjectDescriptor
    public partial class WeekWinProjectDescriptor : ObjectDescriptorBase
    {

        public WeekWinProjectDescriptor(string prefix)
            : base(prefix)
        {

            this._ProjectId = new PropertyExpression(prefix + "ProjectId");
            this._UserId = new PropertyExpression(prefix + "UserId");
            this._FirmCapital = new PropertyExpression(prefix + "FirmCapital");
            this._RiskMargin = new PropertyExpression(prefix + "RiskMargin");
            this._TotalTrade = new PropertyExpression(prefix + "TotalTrade");
            this._LossWarLine = new PropertyExpression(prefix + "LossWarLine");
            this._LossOpenLine = new PropertyExpression(prefix + "LossOpenLine");
            this._FundTime = new PropertyExpression(prefix + "FundTime");
            this._ManageMoney = new PropertyExpression(prefix + "ManageMoney");
            this._StartProjectTime = new PropertyExpression(prefix + "StartProjectTime");
            this._StartTime = new PropertyExpression(prefix + "StartTime");
            this._AddTime = new PropertyExpression(prefix + "AddTime");
            this._ProjectState = new PropertyExpression(prefix + "ProjectState");
            this._TradingAccount = new PropertyExpression(prefix + "TradingAccount");
            this._TradingPassword = new PropertyExpression(prefix + "TradingPassword");
            this._Proportion = new PropertyExpression(prefix + "Proportion");
            this._ProjectNumber = new PropertyExpression(prefix + "ProjectNumber");
            this._SettlementAmount = new PropertyExpression(prefix + "SettlementAmount");
            ALL = new PropertyExpression[] { this._ProjectId, this._UserId, this._FirmCapital, this._RiskMargin, this._TotalTrade, this._LossWarLine, this._LossOpenLine, this._FundTime, this._ManageMoney, this._StartProjectTime, this._StartTime, this._AddTime, this._ProjectState, this._TradingAccount, this._TradingPassword, this._Proportion, this._ProjectNumber, this._SettlementAmount };
        }


        private PropertyExpression _ProjectId;
        /// <summary>
        /// ProjectId,主键
        /// </summary>
        public PropertyExpression ProjectId { get { return _ProjectId; } }
        private PropertyExpression _UserId;
        /// <summary>
        /// UserId,会员Id
        /// </summary>
        public PropertyExpression UserId { get { return _UserId; } }
        private PropertyExpression _FirmCapital;
        /// <summary>
        /// FirmCapital,实盘资金
        /// </summary>
        public PropertyExpression FirmCapital { get { return _FirmCapital; } }
        private PropertyExpression _RiskMargin;
        /// <summary>
        /// RiskMargin,风险保证金
        /// </summary>
        public PropertyExpression RiskMargin { get { return _RiskMargin; } }
        private PropertyExpression _TotalTrade;
        /// <summary>
        /// TotalTrade,总操盘资金
        /// </summary>
        public PropertyExpression TotalTrade { get { return _TotalTrade; } }
        private PropertyExpression _LossWarLine;
        /// <summary>
        /// LossWarLine,亏损警告线
        /// </summary>
        public PropertyExpression LossWarLine { get { return _LossWarLine; } }
        private PropertyExpression _LossOpenLine;
        /// <summary>
        /// LossOpenLine,亏损平仓线
        /// </summary>
        public PropertyExpression LossOpenLine { get { return _LossOpenLine; } }
        private PropertyExpression _FundTime;
        /// <summary>
        /// FundTime,资金使用期限（按天算）
        /// </summary>
        public PropertyExpression FundTime { get { return _FundTime; } }
        private PropertyExpression _ManageMoney;
        /// <summary>
        /// ManageMoney,账号管理费
        /// </summary>
        public PropertyExpression ManageMoney { get { return _ManageMoney; } }
        private PropertyExpression _StartProjectTime;
        /// <summary>
        /// StartProjectTime,方案正式进入交易的时间
        /// </summary>
        public PropertyExpression StartProjectTime { get { return _StartProjectTime; } }
        private PropertyExpression _StartTime;
        /// <summary>
        /// StartTime,开始交易时间
        /// </summary>
        public PropertyExpression StartTime { get { return _StartTime; } }
        private PropertyExpression _AddTime;
        /// <summary>
        /// AddTime,方案发布时间
        /// </summary>
        public PropertyExpression AddTime { get { return _AddTime; } }
        private PropertyExpression _ProjectState;
        /// <summary>
        /// ProjectState,方案状态
        /// 1=正在验资中
        /// 3=正在开户中
        /// 5=正在操盘中
        /// 7=亏损警告
        /// 9=平仓
        /// 11=提交终止操盘
        /// 13=已终止操盘 
        /// 15=已结算
        /// </summary>
        public PropertyExpression ProjectState { get { return _ProjectState; } }
        private PropertyExpression _TradingAccount;
        /// <summary>
        /// TradingAccount,交易账号
        /// </summary>
        public PropertyExpression TradingAccount { get { return _TradingAccount; } }
        private PropertyExpression _TradingPassword;
        /// <summary>
        /// TradingPassword,交易密码
        /// </summary>
        public PropertyExpression TradingPassword { get { return _TradingPassword; } }
        private PropertyExpression _Proportion;
        /// <summary>
        /// Proportion,盈利比例，多少返还
        /// </summary>
        public PropertyExpression Proportion { get { return _Proportion; } }
        private PropertyExpression _ProjectNumber;
        /// <summary>
        /// ProjectNumber,方案号
        /// </summary>
        public PropertyExpression ProjectNumber { get { return _ProjectNumber; } }
        private PropertyExpression _SettlementAmount;
        /// <summary>
        /// SettlementAmount,结算金额
        /// </summary>
        public PropertyExpression SettlementAmount { get { return _SettlementAmount; } }



        private UserDescriptor _User;
        public UserDescriptor User
        {
            get
            {
                if (_User == null) _User = new UserDescriptor(base.Prefix + "User.");
                return _User;
            }
        }
    }
    #endregion


    #region WeekWinProjects
    /// <summary>
    /// WeekWinProject,周周盈方案表
    /// </summary>
    [Table]
    public partial class WeekWinProjects : EntityList<WeekWinProject>
    {

    }
    #endregion


    #region LimitStade
    /// <summary>
    /// LimitStade,今日限股
    /// </summary>
    [Table]
    public partial class LimitStade
    {

        public LimitStade()
        {


        }
        #region propertys

        /// <summary>
        /// LimitStadeId,
        /// </summary>
        [Column(IsPrimaryKey = true)]
        [MySqlColumn(IsIdentity = true)]
        public int LimitStadeId { get; set; }


        /// <summary>
        /// LimitStadeCode,
        /// </summary>
        [Column(Size = 20)]
        public string LimitStadeCode { get; set; }


        /// <summary>
        /// LimitStadeName,
        /// </summary>
        [Column(Size = 30)]
        public string LimitStadeName { get; set; }


        #endregion

    }
    #endregion
    #region LimitStadeProperties
    public static partial class LimitStade_
    {

        private static LimitStadeDescriptor instance = new LimitStadeDescriptor("");

        /// <summary>
        /// 全部字段
        /// </summary>
        public static PropertyExpression[] ALL { get { return instance.ALL; } }


        /// <summary>
        /// LimitStadeId,
        /// </summary>
        public static PropertyExpression LimitStadeId { get { return instance.LimitStadeId; } }
        /// <summary>
        /// LimitStadeCode,
        /// </summary>
        public static PropertyExpression LimitStadeCode { get { return instance.LimitStadeCode; } }
        /// <summary>
        /// LimitStadeName,
        /// </summary>
        public static PropertyExpression LimitStadeName { get { return instance.LimitStadeName; } }




        public static IEnumerable<PropertyExpression> Exclude(params PropertyExpression[] properties)
        {
            return instance.Exclude(properties);
        }

    }
    #endregion
    #region LimitStadeDescriptor
    public partial class LimitStadeDescriptor : ObjectDescriptorBase
    {

        public LimitStadeDescriptor(string prefix)
            : base(prefix)
        {

            this._LimitStadeId = new PropertyExpression(prefix + "LimitStadeId");
            this._LimitStadeCode = new PropertyExpression(prefix + "LimitStadeCode");
            this._LimitStadeName = new PropertyExpression(prefix + "LimitStadeName");
            ALL = new PropertyExpression[] { this._LimitStadeId, this._LimitStadeCode, this._LimitStadeName };
        }


        private PropertyExpression _LimitStadeId;
        /// <summary>
        /// LimitStadeId,
        /// </summary>
        public PropertyExpression LimitStadeId { get { return _LimitStadeId; } }
        private PropertyExpression _LimitStadeCode;
        /// <summary>
        /// LimitStadeCode,
        /// </summary>
        public PropertyExpression LimitStadeCode { get { return _LimitStadeCode; } }
        private PropertyExpression _LimitStadeName;
        /// <summary>
        /// LimitStadeName,
        /// </summary>
        public PropertyExpression LimitStadeName { get { return _LimitStadeName; } }



    }
    #endregion


    #region LimitStades
    /// <summary>
    /// LimitStade,今日限股
    /// </summary>
    [Table]
    public partial class LimitStades : EntityList<LimitStade>
    {

    }
    #endregion


    #region News
    /// <summary>
    /// News,资讯
    /// </summary>
    [Table]
    public partial class News
    {

        public News()
        {

            AddTime = DateTime.Now;

        }
        #region propertys

        /// <summary>
        /// NewsId,主机
        /// </summary>
        [Column(IsPrimaryKey = true)]
        [MySqlColumn(IsIdentity = true)]
        public int NewsId { get; set; }


        /// <summary>
        /// NewsTitle,标题
        /// </summary>
        [Column(Size = 100)]
        public string NewsTitle { get; set; }


        /// <summary>
        /// NewsComtent,内容
        /// </summary>
        [Column()]
        public string NewsComtent { get; set; }


        /// <summary>
        /// AdminUserId,发布人
        /// </summary>
        [Column()]
        public int AdminUserId { get; set; }


        /// <summary>
        /// AddTime,发布时间
        /// </summary>
        [Column()]
        public DateTime AddTime { get; set; }


        /// <summary>
        /// ReadCount,阅读数量
        /// </summary>
        [Column()]
        public int ReadCount { get; set; }


        #endregion

    }
    #endregion
    #region NewsProperties
    public static partial class News_
    {

        private static NewsDescriptor instance = new NewsDescriptor("");

        /// <summary>
        /// 全部字段
        /// </summary>
        public static PropertyExpression[] ALL { get { return instance.ALL; } }


        /// <summary>
        /// NewsId,主机
        /// </summary>
        public static PropertyExpression NewsId { get { return instance.NewsId; } }
        /// <summary>
        /// NewsTitle,标题
        /// </summary>
        public static PropertyExpression NewsTitle { get { return instance.NewsTitle; } }
        /// <summary>
        /// NewsComtent,内容
        /// </summary>
        public static PropertyExpression NewsComtent { get { return instance.NewsComtent; } }
        /// <summary>
        /// AdminUserId,发布人
        /// </summary>
        public static PropertyExpression AdminUserId { get { return instance.AdminUserId; } }
        /// <summary>
        /// AddTime,发布时间
        /// </summary>
        public static PropertyExpression AddTime { get { return instance.AddTime; } }
        /// <summary>
        /// ReadCount,阅读数量
        /// </summary>
        public static PropertyExpression ReadCount { get { return instance.ReadCount; } }




        public static IEnumerable<PropertyExpression> Exclude(params PropertyExpression[] properties)
        {
            return instance.Exclude(properties);
        }

    }
    #endregion
    #region NewsDescriptor
    public partial class NewsDescriptor : ObjectDescriptorBase
    {

        public NewsDescriptor(string prefix)
            : base(prefix)
        {

            this._NewsId = new PropertyExpression(prefix + "NewsId");
            this._NewsTitle = new PropertyExpression(prefix + "NewsTitle");
            this._NewsComtent = new PropertyExpression(prefix + "NewsComtent");
            this._AdminUserId = new PropertyExpression(prefix + "AdminUserId");
            this._AddTime = new PropertyExpression(prefix + "AddTime");
            this._ReadCount = new PropertyExpression(prefix + "ReadCount");
            ALL = new PropertyExpression[] { this._NewsId, this._NewsTitle, this._NewsComtent, this._AdminUserId, this._AddTime, this._ReadCount };
        }


        private PropertyExpression _NewsId;
        /// <summary>
        /// NewsId,主机
        /// </summary>
        public PropertyExpression NewsId { get { return _NewsId; } }
        private PropertyExpression _NewsTitle;
        /// <summary>
        /// NewsTitle,标题
        /// </summary>
        public PropertyExpression NewsTitle { get { return _NewsTitle; } }
        private PropertyExpression _NewsComtent;
        /// <summary>
        /// NewsComtent,内容
        /// </summary>
        public PropertyExpression NewsComtent { get { return _NewsComtent; } }
        private PropertyExpression _AdminUserId;
        /// <summary>
        /// AdminUserId,发布人
        /// </summary>
        public PropertyExpression AdminUserId { get { return _AdminUserId; } }
        private PropertyExpression _AddTime;
        /// <summary>
        /// AddTime,发布时间
        /// </summary>
        public PropertyExpression AddTime { get { return _AddTime; } }
        private PropertyExpression _ReadCount;
        /// <summary>
        /// ReadCount,阅读数量
        /// </summary>
        public PropertyExpression ReadCount { get { return _ReadCount; } }



    }
    #endregion


    #region Newss
    /// <summary>
    /// News,资讯
    /// </summary>
    [Table]
    public partial class Newss : EntityList<News>
    {

    }
    #endregion


    #region User
    /// <summary>
    /// User,用户表
    /// </summary>
    [Table]
    public partial class User
    {

        public User()
        {


        }
        #region propertys

        /// <summary>
        /// UserId,
        /// </summary>
        [Column(IsPrimaryKey = true)]
        [MySqlColumn(IsIdentity = true)]
        public int UserId { get; set; }


        /// <summary>
        /// UserName,用户名
        /// </summary>
        [Column(Size = 30)]
        public string UserName { get; set; }


        /// <summary>
        /// UserPassword,用户密码
        /// </summary>
        [Column(Size = 50)]
        public string UserPassword { get; set; }


        /// <summary>
        /// Phome,手机号
        /// </summary>
        [Column(Size = 20)]
        public string Phone { get; set; }


        /// <summary>
        /// SafeGrade,安全等级
        /// </summary>
        [Column()]
        public int SafeGrade { get; set; }


        /// <summary>
        /// TotalAmount,总金额
        /// </summary>
        [Column(Size = 6)]
        public decimal TotalAmount { get; set; }


        /// <summary>
        /// UserTrueName,真实姓名
        /// </summary>
        [Column(Size = 30)]
        public string UserTrueName { get; set; }


        /// <summary>
        /// UserCardPhoto1,身份证上传图片正面
        /// </summary>
        [Column(Size = 60)]
        public string UserCardPhoto1 { get; set; }


        /// <summary>
        /// UserCardPhoto2,身份证上传图片反面
        /// </summary>
        [Column(Size = 60)]
        public string UserCardPhoto2 { get; set; }


        /// <summary>
        /// UserCardPhoto3,身份证上传图片手持省份证正面
        /// </summary>
        [Column(Size = 60)]
        public string UserCardPhoto3 { get; set; }


        /// <summary>
        /// UserCard,身份证号
        /// </summary>
        [Column(Size = 60)]
        public string UserCard { get; set; }


        /// <summary>
        /// NameAuthenticationState,实名认证的状态
        /// 0=未提交任何实名认证信息
        /// 1=提交了真实姓名和身份证号
        /// 3=提交照片等待审核中
        /// 5=实名认证成功
        /// 6=实名认证失败
        /// </summary>
        [Column()]
        public int NameAuthenticationState { get; set; }


        /// <summary>
        /// Email,邮箱
        /// </summary>
        [Column(Size = 50)]
        public string Email { get; set; }


        /// <summary>
        /// DrawingPassword,提款密码
        /// </summary>
        [Column(Size = 30)]
        public string DrawingPassword { get; set; }


        /// <summary>
        /// IsMarriage,是否已婚
        /// </summary>
        [Column()]
        public int? IsMarriage { get; set; }


        /// <summary>
        /// Province,省
        /// </summary>
        [Column()]
        public int? Province { get; set; }


        /// <summary>
        /// City,市
        /// </summary>
        [Column()]
        public int? City { get; set; }


        /// <summary>
        /// Address,居住地址
        /// </summary>
        [Column(Size = 100)]
        public string Address { get; set; }


        /// <summary>
        /// Education,最高学历
        /// </summary>
        [Column()]
        public int? Education { get; set; }


        /// <summary>
        /// Industry,所属行业
        /// </summary>
        [Column()]
        public int? Industry { get; set; }


        /// <summary>
        /// Position,职位
        /// </summary>
        [Column()]
        public int? Position { get; set; }


        /// <summary>
        /// MonthlySalary,月收入
        /// </summary>
        [Column()]
        public int? MonthlySalary { get; set; }


        /// <summary>
        /// UserState,用户状态：1=启用，3=锁定，5=离职
        /// </summary>
        [Column()]
        public int UserState { get; set; }


        /// <summary>
        /// StockAmount,配资金额
        /// </summary>
        [Column(Size = 6)]
        public decimal StockAmount { get; set; }


        /// <summary>
        /// RiskAmount,风险保障金
        /// </summary>
        [Column(Size = 6)]
        public decimal RiskAmount { get; set; }


        /// <summary>
        /// LockAmount,冻结金额
        /// </summary>
        [Column(Size = 6)]
        public decimal LockAmount { get; set; }


        /// <summary>
        /// BalanceAmount,账户余额
        /// </summary>
        [Column(Size = 6)]
        public decimal BalanceAmount { get; set; }


        /// <summary>
        /// ManagAmount,账户管理费
        /// </summary>
        [Column(Size = 6)]
        public decimal ManagAmount { get; set; }


        /// <summary>
        /// StockMatchInterest,借款总利息
        /// </summary>
        [Column(Size = 6)]
        public decimal StockMatchInterest { get; set; }


        #endregion

    }
    #endregion
    #region UserProperties
    public static partial class User_
    {

        private static UserDescriptor instance = new UserDescriptor("");

        /// <summary>
        /// 全部字段
        /// </summary>
        public static PropertyExpression[] ALL { get { return instance.ALL; } }


        /// <summary>
        /// UserId,
        /// </summary>
        public static PropertyExpression UserId { get { return instance.UserId; } }
        /// <summary>
        /// UserName,用户名
        /// </summary>
        public static PropertyExpression UserName { get { return instance.UserName; } }
        /// <summary>
        /// UserPassword,用户密码
        /// </summary>
        public static PropertyExpression UserPassword { get { return instance.UserPassword; } }
        /// <summary>
        /// Phome,手机号
        /// </summary>
        public static PropertyExpression Phone { get { return instance.Phone; } }
        /// <summary>
        /// SafeGrade,安全等级
        /// </summary>
        public static PropertyExpression SafeGrade { get { return instance.SafeGrade; } }
        /// <summary>
        /// TotalAmount,总金额
        /// </summary>
        public static PropertyExpression TotalAmount { get { return instance.TotalAmount; } }
        /// <summary>
        /// UserTrueName,真实姓名
        /// </summary>
        public static PropertyExpression UserTrueName { get { return instance.UserTrueName; } }
        /// <summary>
        /// UserCardPhoto1,身份证上传图片正面
        /// </summary>
        public static PropertyExpression UserCardPhoto1 { get { return instance.UserCardPhoto1; } }
        /// <summary>
        /// UserCardPhoto2,身份证上传图片反面
        /// </summary>
        public static PropertyExpression UserCardPhoto2 { get { return instance.UserCardPhoto2; } }
        /// <summary>
        /// UserCardPhoto3,身份证上传图片手持省份证正面
        /// </summary>
        public static PropertyExpression UserCardPhoto3 { get { return instance.UserCardPhoto3; } }
        /// <summary>
        /// UserCard,身份证号
        /// </summary>
        public static PropertyExpression UserCard { get { return instance.UserCard; } }
        /// <summary>
        /// NameAuthenticationState,实名认证的状态
        /// 0=未提交任何实名认证信息
        /// 1=提交了真实姓名和身份证号
        /// 3=提交照片等待审核中
        /// 5=实名认证成功
        /// 6=实名认证失败
        /// </summary>
        public static PropertyExpression NameAuthenticationState { get { return instance.NameAuthenticationState; } }
        /// <summary>
        /// Email,邮箱
        /// </summary>
        public static PropertyExpression Email { get { return instance.Email; } }
        /// <summary>
        /// DrawingPassword,提款密码
        /// </summary>
        public static PropertyExpression DrawingPassword { get { return instance.DrawingPassword; } }
        /// <summary>
        /// IsMarriage,是否已婚
        /// </summary>
        public static PropertyExpression IsMarriage { get { return instance.IsMarriage; } }
        /// <summary>
        /// Province,省
        /// </summary>
        public static PropertyExpression Province { get { return instance.Province; } }
        /// <summary>
        /// City,市
        /// </summary>
        public static PropertyExpression City { get { return instance.City; } }
        /// <summary>
        /// Address,居住地址
        /// </summary>
        public static PropertyExpression Address { get { return instance.Address; } }
        /// <summary>
        /// Education,最高学历
        /// </summary>
        public static PropertyExpression Education { get { return instance.Education; } }
        /// <summary>
        /// Industry,所属行业
        /// </summary>
        public static PropertyExpression Industry { get { return instance.Industry; } }
        /// <summary>
        /// Position,职位
        /// </summary>
        public static PropertyExpression Position { get { return instance.Position; } }
        /// <summary>
        /// MonthlySalary,月收入
        /// </summary>
        public static PropertyExpression MonthlySalary { get { return instance.MonthlySalary; } }
        /// <summary>
        /// UserState,用户状态：1=启用，3=锁定，5=离职
        /// </summary>
        public static PropertyExpression UserState { get { return instance.UserState; } }
        /// <summary>
        /// StockAmount,配资金额
        /// </summary>
        public static PropertyExpression StockAmount { get { return instance.StockAmount; } }
        /// <summary>
        /// RiskAmount,风险保障金
        /// </summary>
        public static PropertyExpression RiskAmount { get { return instance.RiskAmount; } }
        /// <summary>
        /// LockAmount,冻结金额
        /// </summary>
        public static PropertyExpression LockAmount { get { return instance.LockAmount; } }
        /// <summary>
        /// BalanceAmount,账户余额
        /// </summary>
        public static PropertyExpression BalanceAmount { get { return instance.BalanceAmount; } }
        /// <summary>
        /// ManagAmount,账户管理费
        /// </summary>
        public static PropertyExpression ManagAmount { get { return instance.ManagAmount; } }
        /// <summary>
        /// StockMatchInterest,借款总利息
        /// </summary>
        public static PropertyExpression StockMatchInterest { get { return instance.StockMatchInterest; } }




        public static IEnumerable<PropertyExpression> Exclude(params PropertyExpression[] properties)
        {
            return instance.Exclude(properties);
        }

    }
    #endregion
    #region UserDescriptor
    public partial class UserDescriptor : ObjectDescriptorBase
    {

        public UserDescriptor(string prefix)
            : base(prefix)
        {

            this._UserId = new PropertyExpression(prefix + "UserId");
            this._UserName = new PropertyExpression(prefix + "UserName");
            this._UserPassword = new PropertyExpression(prefix + "UserPassword");
            this._Phone = new PropertyExpression(prefix + "Phone");
            this._SafeGrade = new PropertyExpression(prefix + "SafeGrade");
            this._TotalAmount = new PropertyExpression(prefix + "TotalAmount");
            this._UserTrueName = new PropertyExpression(prefix + "UserTrueName");
            this._UserCardPhoto1 = new PropertyExpression(prefix + "UserCardPhoto1");
            this._UserCardPhoto2 = new PropertyExpression(prefix + "UserCardPhoto2");
            this._UserCardPhoto3 = new PropertyExpression(prefix + "UserCardPhoto3");
            this._UserCard = new PropertyExpression(prefix + "UserCard");
            this._NameAuthenticationState = new PropertyExpression(prefix + "NameAuthenticationState");
            this._Email = new PropertyExpression(prefix + "Email");
            this._DrawingPassword = new PropertyExpression(prefix + "DrawingPassword");
            this._IsMarriage = new PropertyExpression(prefix + "IsMarriage");
            this._Province = new PropertyExpression(prefix + "Province");
            this._City = new PropertyExpression(prefix + "City");
            this._Address = new PropertyExpression(prefix + "Address");
            this._Education = new PropertyExpression(prefix + "Education");
            this._Industry = new PropertyExpression(prefix + "Industry");
            this._Position = new PropertyExpression(prefix + "Position");
            this._MonthlySalary = new PropertyExpression(prefix + "MonthlySalary");
            this._UserState = new PropertyExpression(prefix + "UserState");
            this._StockAmount = new PropertyExpression(prefix + "StockAmount");
            this._RiskAmount = new PropertyExpression(prefix + "RiskAmount");
            this._LockAmount = new PropertyExpression(prefix + "LockAmount");
            this._BalanceAmount = new PropertyExpression(prefix + "BalanceAmount");
            this._ManagAmount = new PropertyExpression(prefix + "ManagAmount");
            this._StockMatchInterest = new PropertyExpression(prefix + "StockMatchInterest");
            ALL = new PropertyExpression[] { this._UserId, this._UserName, this._UserPassword, this._Phone, this._SafeGrade, this._TotalAmount, this._UserTrueName, this._UserCardPhoto1, this._UserCardPhoto2, this._UserCardPhoto3, this._UserCard, this._NameAuthenticationState, this._Email, this._DrawingPassword, this._IsMarriage, this._Province, this._City, this._Address, this._Education, this._Industry, this._Position, this._MonthlySalary, this._UserState, this._StockAmount, this._RiskAmount, this._LockAmount, this._BalanceAmount, this._ManagAmount, this._StockMatchInterest };
        }


        private PropertyExpression _UserId;
        /// <summary>
        /// UserId,
        /// </summary>
        public PropertyExpression UserId { get { return _UserId; } }
        private PropertyExpression _UserName;
        /// <summary>
        /// UserName,用户名
        /// </summary>
        public PropertyExpression UserName { get { return _UserName; } }
        private PropertyExpression _UserPassword;
        /// <summary>
        /// UserPassword,用户密码
        /// </summary>
        public PropertyExpression UserPassword { get { return _UserPassword; } }
        private PropertyExpression _Phone;
        /// <summary>
        /// Phome,手机号
        /// </summary>
        public PropertyExpression Phone { get { return _Phone; } }
        private PropertyExpression _SafeGrade;
        /// <summary>
        /// SafeGrade,安全等级
        /// </summary>
        public PropertyExpression SafeGrade { get { return _SafeGrade; } }
        private PropertyExpression _TotalAmount;
        /// <summary>
        /// TotalAmount,总金额
        /// </summary>
        public PropertyExpression TotalAmount { get { return _TotalAmount; } }
        private PropertyExpression _UserTrueName;
        /// <summary>
        /// UserTrueName,真实姓名
        /// </summary>
        public PropertyExpression UserTrueName { get { return _UserTrueName; } }
        private PropertyExpression _UserCardPhoto1;
        /// <summary>
        /// UserCardPhoto1,身份证上传图片正面
        /// </summary>
        public PropertyExpression UserCardPhoto1 { get { return _UserCardPhoto1; } }
        private PropertyExpression _UserCardPhoto2;
        /// <summary>
        /// UserCardPhoto2,身份证上传图片反面
        /// </summary>
        public PropertyExpression UserCardPhoto2 { get { return _UserCardPhoto2; } }
        private PropertyExpression _UserCardPhoto3;
        /// <summary>
        /// UserCardPhoto3,身份证上传图片手持省份证正面
        /// </summary>
        public PropertyExpression UserCardPhoto3 { get { return _UserCardPhoto3; } }
        private PropertyExpression _UserCard;
        /// <summary>
        /// UserCard,身份证号
        /// </summary>
        public PropertyExpression UserCard { get { return _UserCard; } }
        private PropertyExpression _NameAuthenticationState;
        /// <summary>
        /// NameAuthenticationState,实名认证的状态
        /// 0=未提交任何实名认证信息
        /// 1=提交了真实姓名和身份证号
        /// 3=提交照片等待审核中
        /// 5=实名认证成功
        /// 6=实名认证失败
        /// </summary>
        public PropertyExpression NameAuthenticationState { get { return _NameAuthenticationState; } }
        private PropertyExpression _Email;
        /// <summary>
        /// Email,邮箱
        /// </summary>
        public PropertyExpression Email { get { return _Email; } }
        private PropertyExpression _DrawingPassword;
        /// <summary>
        /// DrawingPassword,提款密码
        /// </summary>
        public PropertyExpression DrawingPassword { get { return _DrawingPassword; } }
        private PropertyExpression _IsMarriage;
        /// <summary>
        /// IsMarriage,是否已婚
        /// </summary>
        public PropertyExpression IsMarriage { get { return _IsMarriage; } }
        private PropertyExpression _Province;
        /// <summary>
        /// Province,省
        /// </summary>
        public PropertyExpression Province { get { return _Province; } }
        private PropertyExpression _City;
        /// <summary>
        /// City,市
        /// </summary>
        public PropertyExpression City { get { return _City; } }
        private PropertyExpression _Address;
        /// <summary>
        /// Address,居住地址
        /// </summary>
        public PropertyExpression Address { get { return _Address; } }
        private PropertyExpression _Education;
        /// <summary>
        /// Education,最高学历
        /// </summary>
        public PropertyExpression Education { get { return _Education; } }
        private PropertyExpression _Industry;
        /// <summary>
        /// Industry,所属行业
        /// </summary>
        public PropertyExpression Industry { get { return _Industry; } }
        private PropertyExpression _Position;
        /// <summary>
        /// Position,职位
        /// </summary>
        public PropertyExpression Position { get { return _Position; } }
        private PropertyExpression _MonthlySalary;
        /// <summary>
        /// MonthlySalary,月收入
        /// </summary>
        public PropertyExpression MonthlySalary { get { return _MonthlySalary; } }
        private PropertyExpression _UserState;
        /// <summary>
        /// UserState,用户状态：1=启用，3=锁定，5=离职
        /// </summary>
        public PropertyExpression UserState { get { return _UserState; } }
        private PropertyExpression _StockAmount;
        /// <summary>
        /// StockAmount,配资金额
        /// </summary>
        public PropertyExpression StockAmount { get { return _StockAmount; } }
        private PropertyExpression _RiskAmount;
        /// <summary>
        /// RiskAmount,风险保障金
        /// </summary>
        public PropertyExpression RiskAmount { get { return _RiskAmount; } }
        private PropertyExpression _LockAmount;
        /// <summary>
        /// LockAmount,冻结金额
        /// </summary>
        public PropertyExpression LockAmount { get { return _LockAmount; } }
        private PropertyExpression _BalanceAmount;
        /// <summary>
        /// BalanceAmount,账户余额
        /// </summary>
        public PropertyExpression BalanceAmount { get { return _BalanceAmount; } }
        private PropertyExpression _ManagAmount;
        /// <summary>
        /// ManagAmount,账户管理费
        /// </summary>
        public PropertyExpression ManagAmount { get { return _ManagAmount; } }
        private PropertyExpression _StockMatchInterest;
        /// <summary>
        /// StockMatchInterest,借款总利息
        /// </summary>
        public PropertyExpression StockMatchInterest { get { return _StockMatchInterest; } }



    }
    #endregion


    #region Users
    /// <summary>
    /// User,用户表
    /// </summary>
    [Table]
    public partial class Users : EntityList<User>
    {

    }
    #endregion


    #region AdminUser
    /// <summary>
    /// AdminUser,管理员表
    /// </summary>
    [Table]
    public partial class AdminUser
    {

        public AdminUser()
        {

            AddTime = DateTime.Now;
            UpdateTime = DateTime.Now;

        }
        #region propertys

        /// <summary>
        /// AdminUserId,主键，自增长，员工Id
        /// </summary>
        [Column(IsPrimaryKey = true)]
        [MySqlColumn(IsIdentity = true)]
        public int AdminUserId { get; set; }


        /// <summary>
        /// AdminUserName,用户名
        /// </summary>
        [Column(Size = 30)]
        public string AdminUserName { get; set; }


        /// <summary>
        /// AdminPassword,密码
        /// </summary>
        [Column(Size = 50)]
        public string AdminPassword { get; set; }


        /// <summary>
        /// AdminUseTrueName,真实姓名
        /// </summary>
        [Column(Size = 30)]
        public string AdminUseTrueName { get; set; }


        /// <summary>
        /// AdminUseSex,性别
        /// </summary>
        [Column()]
        public int AdminUseSex { get; set; }


        /// <summary>
        /// AdminUserDepart,职位
        /// </summary>
        [Column()]
        public int AdminUserDepart { get; set; }


        /// <summary>
        /// AdminUsePhone,手机
        /// </summary>
        [Column(Size = 11)]
        public string AdminUsePhone { get; set; }


        /// <summary>
        /// AdminUseTel,座机
        /// </summary>
        [Column(Size = 30)]
        public string AdminUseTel { get; set; }


        /// <summary>
        /// AdminUseQQ,QQ
        /// </summary>
        [Column(Size = 30)]
        public string AdminUseQQ { get; set; }


        /// <summary>
        /// AdminUseEmail,邮箱
        /// </summary>
        [Column(Size = 200)]
        public string AdminUseEmail { get; set; }


        /// <summary>
        /// AdminUserState,用户状态：1=启用，3=锁定，5=离职
        /// </summary>
        [Column()]
        public int AdminUserState { get; set; }


        /// <summary>
        /// AddTime,创建时间
        /// </summary>
        [Column()]
        public DateTime AddTime { get; set; }


        /// <summary>
        /// UpdateTime,修改时间
        /// </summary>
        [Column()]
        public DateTime UpdateTime { get; set; }


        /// <summary>
        /// LastUpdateAdminUserId,最后修改用户Id
        /// </summary>
        [Column()]
        public int LastUpdateAdminUserId { get; set; }


        #endregion

    }
    #endregion
    #region AdminUserProperties
    public static partial class AdminUser_
    {

        private static AdminUserDescriptor instance = new AdminUserDescriptor("");

        /// <summary>
        /// 全部字段
        /// </summary>
        public static PropertyExpression[] ALL { get { return instance.ALL; } }


        /// <summary>
        /// AdminUserId,主键，自增长，员工Id
        /// </summary>
        public static PropertyExpression AdminUserId { get { return instance.AdminUserId; } }
        /// <summary>
        /// AdminUserName,用户名
        /// </summary>
        public static PropertyExpression AdminUserName { get { return instance.AdminUserName; } }
        /// <summary>
        /// AdminPassword,密码
        /// </summary>
        public static PropertyExpression AdminPassword { get { return instance.AdminPassword; } }
        /// <summary>
        /// AdminUseTrueName,真实姓名
        /// </summary>
        public static PropertyExpression AdminUseTrueName { get { return instance.AdminUseTrueName; } }
        /// <summary>
        /// AdminUseSex,性别
        /// </summary>
        public static PropertyExpression AdminUseSex { get { return instance.AdminUseSex; } }
        /// <summary>
        /// AdminUserDepart,职位
        /// </summary>
        public static PropertyExpression AdminUserDepart { get { return instance.AdminUserDepart; } }
        /// <summary>
        /// AdminUsePhone,手机
        /// </summary>
        public static PropertyExpression AdminUsePhone { get { return instance.AdminUsePhone; } }
        /// <summary>
        /// AdminUseTel,座机
        /// </summary>
        public static PropertyExpression AdminUseTel { get { return instance.AdminUseTel; } }
        /// <summary>
        /// AdminUseQQ,QQ
        /// </summary>
        public static PropertyExpression AdminUseQQ { get { return instance.AdminUseQQ; } }
        /// <summary>
        /// AdminUseEmail,邮箱
        /// </summary>
        public static PropertyExpression AdminUseEmail { get { return instance.AdminUseEmail; } }
        /// <summary>
        /// AdminUserState,用户状态：1=启用，3=锁定，5=离职
        /// </summary>
        public static PropertyExpression AdminUserState { get { return instance.AdminUserState; } }
        /// <summary>
        /// AddTime,创建时间
        /// </summary>
        public static PropertyExpression AddTime { get { return instance.AddTime; } }
        /// <summary>
        /// UpdateTime,修改时间
        /// </summary>
        public static PropertyExpression UpdateTime { get { return instance.UpdateTime; } }
        /// <summary>
        /// LastUpdateAdminUserId,最后修改用户Id
        /// </summary>
        public static PropertyExpression LastUpdateAdminUserId { get { return instance.LastUpdateAdminUserId; } }




        public static IEnumerable<PropertyExpression> Exclude(params PropertyExpression[] properties)
        {
            return instance.Exclude(properties);
        }

    }
    #endregion
    #region AdminUserDescriptor
    public partial class AdminUserDescriptor : ObjectDescriptorBase
    {

        public AdminUserDescriptor(string prefix)
            : base(prefix)
        {

            this._AdminUserId = new PropertyExpression(prefix + "AdminUserId");
            this._AdminUserName = new PropertyExpression(prefix + "AdminUserName");
            this._AdminPassword = new PropertyExpression(prefix + "AdminPassword");
            this._AdminUseTrueName = new PropertyExpression(prefix + "AdminUseTrueName");
            this._AdminUseSex = new PropertyExpression(prefix + "AdminUseSex");
            this._AdminUserDepart = new PropertyExpression(prefix + "AdminUserDepart");
            this._AdminUsePhone = new PropertyExpression(prefix + "AdminUsePhone");
            this._AdminUseTel = new PropertyExpression(prefix + "AdminUseTel");
            this._AdminUseQQ = new PropertyExpression(prefix + "AdminUseQQ");
            this._AdminUseEmail = new PropertyExpression(prefix + "AdminUseEmail");
            this._AdminUserState = new PropertyExpression(prefix + "AdminUserState");
            this._AddTime = new PropertyExpression(prefix + "AddTime");
            this._UpdateTime = new PropertyExpression(prefix + "UpdateTime");
            this._LastUpdateAdminUserId = new PropertyExpression(prefix + "LastUpdateAdminUserId");
            ALL = new PropertyExpression[] { this._AdminUserId, this._AdminUserName, this._AdminPassword, this._AdminUseTrueName, this._AdminUseSex, this._AdminUserDepart, this._AdminUsePhone, this._AdminUseTel, this._AdminUseQQ, this._AdminUseEmail, this._AdminUserState, this._AddTime, this._UpdateTime, this._LastUpdateAdminUserId };
        }


        private PropertyExpression _AdminUserId;
        /// <summary>
        /// AdminUserId,主键，自增长，员工Id
        /// </summary>
        public PropertyExpression AdminUserId { get { return _AdminUserId; } }
        private PropertyExpression _AdminUserName;
        /// <summary>
        /// AdminUserName,用户名
        /// </summary>
        public PropertyExpression AdminUserName { get { return _AdminUserName; } }
        private PropertyExpression _AdminPassword;
        /// <summary>
        /// AdminPassword,密码
        /// </summary>
        public PropertyExpression AdminPassword { get { return _AdminPassword; } }
        private PropertyExpression _AdminUseTrueName;
        /// <summary>
        /// AdminUseTrueName,真实姓名
        /// </summary>
        public PropertyExpression AdminUseTrueName { get { return _AdminUseTrueName; } }
        private PropertyExpression _AdminUseSex;
        /// <summary>
        /// AdminUseSex,性别
        /// </summary>
        public PropertyExpression AdminUseSex { get { return _AdminUseSex; } }
        private PropertyExpression _AdminUserDepart;
        /// <summary>
        /// AdminUserDepart,职位
        /// </summary>
        public PropertyExpression AdminUserDepart { get { return _AdminUserDepart; } }
        private PropertyExpression _AdminUsePhone;
        /// <summary>
        /// AdminUsePhone,手机
        /// </summary>
        public PropertyExpression AdminUsePhone { get { return _AdminUsePhone; } }
        private PropertyExpression _AdminUseTel;
        /// <summary>
        /// AdminUseTel,座机
        /// </summary>
        public PropertyExpression AdminUseTel { get { return _AdminUseTel; } }
        private PropertyExpression _AdminUseQQ;
        /// <summary>
        /// AdminUseQQ,QQ
        /// </summary>
        public PropertyExpression AdminUseQQ { get { return _AdminUseQQ; } }
        private PropertyExpression _AdminUseEmail;
        /// <summary>
        /// AdminUseEmail,邮箱
        /// </summary>
        public PropertyExpression AdminUseEmail { get { return _AdminUseEmail; } }
        private PropertyExpression _AdminUserState;
        /// <summary>
        /// AdminUserState,用户状态：1=启用，3=锁定，5=离职
        /// </summary>
        public PropertyExpression AdminUserState { get { return _AdminUserState; } }
        private PropertyExpression _AddTime;
        /// <summary>
        /// AddTime,创建时间
        /// </summary>
        public PropertyExpression AddTime { get { return _AddTime; } }
        private PropertyExpression _UpdateTime;
        /// <summary>
        /// UpdateTime,修改时间
        /// </summary>
        public PropertyExpression UpdateTime { get { return _UpdateTime; } }
        private PropertyExpression _LastUpdateAdminUserId;
        /// <summary>
        /// LastUpdateAdminUserId,最后修改用户Id
        /// </summary>
        public PropertyExpression LastUpdateAdminUserId { get { return _LastUpdateAdminUserId; } }



    }
    #endregion


    #region AdminUsers
    /// <summary>
    /// AdminUser,管理员表
    /// </summary>
    [Table]
    public partial class AdminUsers : EntityList<AdminUser>
    {

    }
    #endregion


    #region OnlineMessage
    /// <summary>
    /// OnlineMessage,在线留言表 
    /// </summary>
    [Table]
    public partial class OnlineMessage
    {

        public OnlineMessage()
        {

            AddTime = DateTime.Now;

        }
        #region propertys

        /// <summary>
        /// OnlineMessageId,
        /// </summary>
        [Column(IsPrimaryKey = true)]
        [MySqlColumn(IsIdentity = true)]
        public int OnlineMessageId { get; set; }


        /// <summary>
        /// MessageTypeId,留言类型
        /// </summary>
        [Column()]
        public int MessageTypeId { get; set; }


        /// <summary>
        /// MessageInfo,留言内容
        /// </summary>
        [Column()]
        public string MessageInfo { get; set; }


        /// <summary>
        /// UserId,留言人
        /// </summary>
        [Column()]
        public int UserId { get; set; }


        /// <summary>
        /// AddTime,留言时间
        /// </summary>
        [Column()]
        public DateTime AddTime { get; set; }


        #endregion

        #region link objects

        /// <summary>
        /// OnlineMessage.User,
        /// </summary>
        [Relation("this.UserId=out.UserId")]
        public User User { get; set; }



        #endregion
    }
    #endregion
    #region OnlineMessageProperties
    public static partial class OnlineMessage_
    {

        private static OnlineMessageDescriptor instance = new OnlineMessageDescriptor("");

        /// <summary>
        /// 全部字段
        /// </summary>
        public static PropertyExpression[] ALL { get { return instance.ALL; } }


        /// <summary>
        /// OnlineMessageId,
        /// </summary>
        public static PropertyExpression OnlineMessageId { get { return instance.OnlineMessageId; } }
        /// <summary>
        /// MessageTypeId,留言类型
        /// </summary>
        public static PropertyExpression MessageTypeId { get { return instance.MessageTypeId; } }
        /// <summary>
        /// MessageInfo,留言内容
        /// </summary>
        public static PropertyExpression MessageInfo { get { return instance.MessageInfo; } }
        /// <summary>
        /// UserId,留言人
        /// </summary>
        public static PropertyExpression UserId { get { return instance.UserId; } }
        /// <summary>
        /// AddTime,留言时间
        /// </summary>
        public static PropertyExpression AddTime { get { return instance.AddTime; } }



        /// <summary>
        /// OnlineMessage.User,
        /// </summary>
        public static UserDescriptor User { get { return instance.User; } }

        public static IEnumerable<PropertyExpression> Exclude(params PropertyExpression[] properties)
        {
            return instance.Exclude(properties);
        }

    }
    #endregion
    #region OnlineMessageDescriptor
    public partial class OnlineMessageDescriptor : ObjectDescriptorBase
    {

        public OnlineMessageDescriptor(string prefix)
            : base(prefix)
        {

            this._OnlineMessageId = new PropertyExpression(prefix + "OnlineMessageId");
            this._MessageTypeId = new PropertyExpression(prefix + "MessageTypeId");
            this._MessageInfo = new PropertyExpression(prefix + "MessageInfo");
            this._UserId = new PropertyExpression(prefix + "UserId");
            this._AddTime = new PropertyExpression(prefix + "AddTime");
            ALL = new PropertyExpression[] { this._OnlineMessageId, this._MessageTypeId, this._MessageInfo, this._UserId, this._AddTime };
        }


        private PropertyExpression _OnlineMessageId;
        /// <summary>
        /// OnlineMessageId,
        /// </summary>
        public PropertyExpression OnlineMessageId { get { return _OnlineMessageId; } }
        private PropertyExpression _MessageTypeId;
        /// <summary>
        /// MessageTypeId,留言类型
        /// </summary>
        public PropertyExpression MessageTypeId { get { return _MessageTypeId; } }
        private PropertyExpression _MessageInfo;
        /// <summary>
        /// MessageInfo,留言内容
        /// </summary>
        public PropertyExpression MessageInfo { get { return _MessageInfo; } }
        private PropertyExpression _UserId;
        /// <summary>
        /// UserId,留言人
        /// </summary>
        public PropertyExpression UserId { get { return _UserId; } }
        private PropertyExpression _AddTime;
        /// <summary>
        /// AddTime,留言时间
        /// </summary>
        public PropertyExpression AddTime { get { return _AddTime; } }



        private UserDescriptor _User;
        public UserDescriptor User
        {
            get
            {
                if (_User == null) _User = new UserDescriptor(base.Prefix + "User.");
                return _User;
            }
        }
    }
    #endregion


    #region OnlineMessages
    /// <summary>
    /// OnlineMessage,在线留言表 
    /// </summary>
    [Table]
    public partial class OnlineMessages : EntityList<OnlineMessage>
    {

    }
    #endregion


    #region Recharge
    /// <summary>
    /// Recharge,充值记录
    /// </summary>
    [Table]
    public partial class Recharge
    {

        public Recharge()
        {


        }
        #region propertys

        /// <summary>
        /// RechargeId,主键
        /// </summary>
        [Column(IsPrimaryKey = true)]
        [MySqlColumn(IsIdentity = true)]
        public int RechargeId { get; set; }


        /// <summary>
        /// UserId,会员Id
        /// </summary>
        [Column()]
        public int? UserId { get; set; }


        /// <summary>
        /// Amount,充值金额
        /// </summary>
        [Column(Size = 6)]
        public decimal? Amount { get; set; }


        /// <summary>
        /// RechargeCode,订单号
        /// </summary>
        [Column(Size = 30)]
        public string RechargeCode { get; set; }


        /// <summary>
        /// RechargeType,充值方式
        /// </summary>
        [Column()]
        public int? RechargeType { get; set; }


        /// <summary>
        /// DateTime,充值时间
        /// </summary>
        [Column()]
        public DateTime? DateTime { get; set; }


        /// <summary>
        /// RechargeState,充值状态
        /// </summary>
        [Column()]
        public int? RechargeState { get; set; }


        #endregion

        #region link objects

        /// <summary>
        /// Recharge.User,
        /// </summary>
        [Relation("this.UserId=out.UserId")]
        public User User { get; set; }



        #endregion
    }
    #endregion
    #region RechargeProperties
    public static partial class Recharge_
    {

        private static RechargeDescriptor instance = new RechargeDescriptor("");

        /// <summary>
        /// 全部字段
        /// </summary>
        public static PropertyExpression[] ALL { get { return instance.ALL; } }


        /// <summary>
        /// RechargeId,主键
        /// </summary>
        public static PropertyExpression RechargeId { get { return instance.RechargeId; } }
        /// <summary>
        /// UserId,会员Id
        /// </summary>
        public static PropertyExpression UserId { get { return instance.UserId; } }
        /// <summary>
        /// Amount,充值金额
        /// </summary>
        public static PropertyExpression Amount { get { return instance.Amount; } }
        /// <summary>
        /// RechargeCode,订单号
        /// </summary>
        public static PropertyExpression RechargeCode { get { return instance.RechargeCode; } }
        /// <summary>
        /// RechargeType,充值方式
        /// </summary>
        public static PropertyExpression RechargeType { get { return instance.RechargeType; } }
        /// <summary>
        /// DateTime,充值时间
        /// </summary>
        public static PropertyExpression DateTime { get { return instance.DateTime; } }
        /// <summary>
        /// RechargeState,充值状态
        /// </summary>
        public static PropertyExpression RechargeState { get { return instance.RechargeState; } }



        /// <summary>
        /// Recharge.User,
        /// </summary>
        public static UserDescriptor User { get { return instance.User; } }

        public static IEnumerable<PropertyExpression> Exclude(params PropertyExpression[] properties)
        {
            return instance.Exclude(properties);
        }

    }
    #endregion
    #region RechargeDescriptor
    public partial class RechargeDescriptor : ObjectDescriptorBase
    {

        public RechargeDescriptor(string prefix)
            : base(prefix)
        {

            this._RechargeId = new PropertyExpression(prefix + "RechargeId");
            this._UserId = new PropertyExpression(prefix + "UserId");
            this._Amount = new PropertyExpression(prefix + "Amount");
            this._RechargeCode = new PropertyExpression(prefix + "RechargeCode");
            this._RechargeType = new PropertyExpression(prefix + "RechargeType");
            this._DateTime = new PropertyExpression(prefix + "DateTime");
            this._RechargeState = new PropertyExpression(prefix + "RechargeState");
            ALL = new PropertyExpression[] { this._RechargeId, this._UserId, this._Amount, this._RechargeCode, this._RechargeType, this._DateTime, this._RechargeState };
        }


        private PropertyExpression _RechargeId;
        /// <summary>
        /// RechargeId,主键
        /// </summary>
        public PropertyExpression RechargeId { get { return _RechargeId; } }
        private PropertyExpression _UserId;
        /// <summary>
        /// UserId,会员Id
        /// </summary>
        public PropertyExpression UserId { get { return _UserId; } }
        private PropertyExpression _Amount;
        /// <summary>
        /// Amount,充值金额
        /// </summary>
        public PropertyExpression Amount { get { return _Amount; } }
        private PropertyExpression _RechargeCode;
        /// <summary>
        /// RechargeCode,订单号
        /// </summary>
        public PropertyExpression RechargeCode { get { return _RechargeCode; } }
        private PropertyExpression _RechargeType;
        /// <summary>
        /// RechargeType,充值方式
        /// </summary>
        public PropertyExpression RechargeType { get { return _RechargeType; } }
        private PropertyExpression _DateTime;
        /// <summary>
        /// DateTime,充值时间
        /// </summary>
        public PropertyExpression DateTime { get { return _DateTime; } }
        private PropertyExpression _RechargeState;
        /// <summary>
        /// RechargeState,充值状态
        /// </summary>
        public PropertyExpression RechargeState { get { return _RechargeState; } }



        private UserDescriptor _User;
        public UserDescriptor User
        {
            get
            {
                if (_User == null) _User = new UserDescriptor(base.Prefix + "User.");
                return _User;
            }
        }
    }
    #endregion


    #region Recharges
    /// <summary>
    /// Recharge,充值记录
    /// </summary>
    [Table]
    public partial class Recharges : EntityList<Recharge>
    {

    }
    #endregion


    #region Drawing
    /// <summary>
    /// Drawing,提款
    /// </summary>
    [Table]
    public partial class Drawing
    {

        public Drawing()
        {


        }
        #region propertys

        /// <summary>
        /// DrawingId,主键
        /// </summary>
        [Column(IsPrimaryKey = true)]
        [MySqlColumn(IsIdentity = true)]
        public int DrawingId { get; set; }


        /// <summary>
        /// UserId,用户Id
        /// </summary>
        [Column()]
        public int? UserId { get; set; }


        /// <summary>
        /// Amount,提款金额
        /// </summary>
        [Column(Size = 6)]
        public decimal? Amount { get; set; }


        /// <summary>
        /// DrawingCode,提款银行卡号
        /// </summary>
        [Column(Size = 30)]
        public string DrawingCode { get; set; }


        /// <summary>
        /// DrawingState,状态
        /// </summary>
        [Column()]
        public int? DrawingState { get; set; }


        /// <summary>
        /// DateTime,时间
        /// </summary>
        [Column()]
        public DateTime? DateTime { get; set; }


        #endregion

        #region link objects

        /// <summary>
        /// Drawing.User,
        /// </summary>
        [Relation("this.UserId=out.UserId")]
        public User User { get; set; }



        #endregion
    }
    #endregion
    #region DrawingProperties
    public static partial class Drawing_
    {

        private static DrawingDescriptor instance = new DrawingDescriptor("");

        /// <summary>
        /// 全部字段
        /// </summary>
        public static PropertyExpression[] ALL { get { return instance.ALL; } }


        /// <summary>
        /// DrawingId,主键
        /// </summary>
        public static PropertyExpression DrawingId { get { return instance.DrawingId; } }
        /// <summary>
        /// UserId,用户Id
        /// </summary>
        public static PropertyExpression UserId { get { return instance.UserId; } }
        /// <summary>
        /// Amount,提款金额
        /// </summary>
        public static PropertyExpression Amount { get { return instance.Amount; } }
        /// <summary>
        /// DrawingCode,提款银行卡号
        /// </summary>
        public static PropertyExpression DrawingCode { get { return instance.DrawingCode; } }
        /// <summary>
        /// DrawingState,状态
        /// </summary>
        public static PropertyExpression DrawingState { get { return instance.DrawingState; } }
        /// <summary>
        /// DateTime,时间
        /// </summary>
        public static PropertyExpression DateTime { get { return instance.DateTime; } }



        /// <summary>
        /// Drawing.User,
        /// </summary>
        public static UserDescriptor User { get { return instance.User; } }

        public static IEnumerable<PropertyExpression> Exclude(params PropertyExpression[] properties)
        {
            return instance.Exclude(properties);
        }

    }
    #endregion
    #region DrawingDescriptor
    public partial class DrawingDescriptor : ObjectDescriptorBase
    {

        public DrawingDescriptor(string prefix)
            : base(prefix)
        {

            this._DrawingId = new PropertyExpression(prefix + "DrawingId");
            this._UserId = new PropertyExpression(prefix + "UserId");
            this._Amount = new PropertyExpression(prefix + "Amount");
            this._DrawingCode = new PropertyExpression(prefix + "DrawingCode");
            this._DrawingState = new PropertyExpression(prefix + "DrawingState");
            this._DateTime = new PropertyExpression(prefix + "DateTime");
            ALL = new PropertyExpression[] { this._DrawingId, this._UserId, this._Amount, this._DrawingCode, this._DrawingState, this._DateTime };
        }


        private PropertyExpression _DrawingId;
        /// <summary>
        /// DrawingId,主键
        /// </summary>
        public PropertyExpression DrawingId { get { return _DrawingId; } }
        private PropertyExpression _UserId;
        /// <summary>
        /// UserId,用户Id
        /// </summary>
        public PropertyExpression UserId { get { return _UserId; } }
        private PropertyExpression _Amount;
        /// <summary>
        /// Amount,提款金额
        /// </summary>
        public PropertyExpression Amount { get { return _Amount; } }
        private PropertyExpression _DrawingCode;
        /// <summary>
        /// DrawingCode,提款银行卡号
        /// </summary>
        public PropertyExpression DrawingCode { get { return _DrawingCode; } }
        private PropertyExpression _DrawingState;
        /// <summary>
        /// DrawingState,状态
        /// </summary>
        public PropertyExpression DrawingState { get { return _DrawingState; } }
        private PropertyExpression _DateTime;
        /// <summary>
        /// DateTime,时间
        /// </summary>
        public PropertyExpression DateTime { get { return _DateTime; } }



        private UserDescriptor _User;
        public UserDescriptor User
        {
            get
            {
                if (_User == null) _User = new UserDescriptor(base.Prefix + "User.");
                return _User;
            }
        }
    }
    #endregion


    #region Drawings
    /// <summary>
    /// Drawing,提款
    /// </summary>
    [Table]
    public partial class Drawings : EntityList<Drawing>
    {

    }
    #endregion


    #region DayWinProjectAccount
    /// <summary>
    /// DayWinProjectAccount,账号管理费
    /// </summary>
    [Table]
    public partial class DayWinProjectAccount
    {

        public DayWinProjectAccount()
        {

            PayTime = DateTime.Now;

        }
        #region propertys

        /// <summary>
        /// ProjectAccountId,主键
        /// </summary>
        [Column(IsPrimaryKey = true)]
        [MySqlColumn(IsIdentity = true)]
        public int ProjectAccountId { get; set; }


        /// <summary>
        /// ProjectId,方案id
        /// </summary>
        [Column()]
        public int ProjectId { get; set; }


        /// <summary>
        /// PayTime,支付时间
        /// </summary>
        [Column()]
        public DateTime PayTime { get; set; }


        /// <summary>
        /// PayMoney,账号管理费
        /// </summary>
        [Column(Size = 6)]
        public decimal PayMoney { get; set; }


        /// <summary>
        /// PayState,支付状态
        /// </summary>
        [Column()]
        public int PayState { get; set; }


        #endregion

        #region link objects

        /// <summary>
        /// DayWinProjectAccount.DayWinProject,
        /// </summary>
        [Relation("this.ProjectId=out.ProjectId")]
        public DayWinProject DayWinProject { get; set; }



        #endregion
    }
    #endregion
    #region DayWinProjectAccountProperties
    public static partial class DayWinProjectAccount_
    {

        private static DayWinProjectAccountDescriptor instance = new DayWinProjectAccountDescriptor("");

        /// <summary>
        /// 全部字段
        /// </summary>
        public static PropertyExpression[] ALL { get { return instance.ALL; } }


        /// <summary>
        /// ProjectAccountId,主键
        /// </summary>
        public static PropertyExpression ProjectAccountId { get { return instance.ProjectAccountId; } }
        /// <summary>
        /// ProjectId,方案id
        /// </summary>
        public static PropertyExpression ProjectId { get { return instance.ProjectId; } }
        /// <summary>
        /// PayTime,支付时间
        /// </summary>
        public static PropertyExpression PayTime { get { return instance.PayTime; } }
        /// <summary>
        /// PayMoney,账号管理费
        /// </summary>
        public static PropertyExpression PayMoney { get { return instance.PayMoney; } }
        /// <summary>
        /// PayState,支付状态
        /// </summary>
        public static PropertyExpression PayState { get { return instance.PayState; } }



        /// <summary>
        /// DayWinProjectAccount.DayWinProject,
        /// </summary>
        public static DayWinProjectDescriptor DayWinProject { get { return instance.DayWinProject; } }

        public static IEnumerable<PropertyExpression> Exclude(params PropertyExpression[] properties)
        {
            return instance.Exclude(properties);
        }

    }
    #endregion
    #region DayWinProjectAccountDescriptor
    public partial class DayWinProjectAccountDescriptor : ObjectDescriptorBase
    {

        public DayWinProjectAccountDescriptor(string prefix)
            : base(prefix)
        {

            this._ProjectAccountId = new PropertyExpression(prefix + "ProjectAccountId");
            this._ProjectId = new PropertyExpression(prefix + "ProjectId");
            this._PayTime = new PropertyExpression(prefix + "PayTime");
            this._PayMoney = new PropertyExpression(prefix + "PayMoney");
            this._PayState = new PropertyExpression(prefix + "PayState");
            ALL = new PropertyExpression[] { this._ProjectAccountId, this._ProjectId, this._PayTime, this._PayMoney, this._PayState };
        }


        private PropertyExpression _ProjectAccountId;
        /// <summary>
        /// ProjectAccountId,主键
        /// </summary>
        public PropertyExpression ProjectAccountId { get { return _ProjectAccountId; } }
        private PropertyExpression _ProjectId;
        /// <summary>
        /// ProjectId,方案id
        /// </summary>
        public PropertyExpression ProjectId { get { return _ProjectId; } }
        private PropertyExpression _PayTime;
        /// <summary>
        /// PayTime,支付时间
        /// </summary>
        public PropertyExpression PayTime { get { return _PayTime; } }
        private PropertyExpression _PayMoney;
        /// <summary>
        /// PayMoney,账号管理费
        /// </summary>
        public PropertyExpression PayMoney { get { return _PayMoney; } }
        private PropertyExpression _PayState;
        /// <summary>
        /// PayState,支付状态
        /// </summary>
        public PropertyExpression PayState { get { return _PayState; } }



        private DayWinProjectDescriptor _DayWinProject;
        public DayWinProjectDescriptor DayWinProject
        {
            get
            {
                if (_DayWinProject == null) _DayWinProject = new DayWinProjectDescriptor(base.Prefix + "DayWinProject.");
                return _DayWinProject;
            }
        }
    }
    #endregion


    #region DayWinProjectAccounts
    /// <summary>
    /// DayWinProjectAccount,账号管理费
    /// </summary>
    [Table]
    public partial class DayWinProjectAccounts : EntityList<DayWinProjectAccount>
    {

    }
    #endregion


    #region DayWinProjectRiskMargin
    /// <summary>
    /// DayWinProjectRiskMargin,天天赢保证金追加
    /// </summary>
    [Table]
    public partial class DayWinProjectRiskMargin
    {

        public DayWinProjectRiskMargin()
        {

            AddTime = DateTime.Now;

        }
        #region propertys

        /// <summary>
        /// ProjectRiskMarginId,主键
        /// </summary>
        [Column(IsPrimaryKey = true)]
        [MySqlColumn(IsIdentity = true)]
        public int ProjectRiskMarginId { get; set; }


        /// <summary>
        /// ProjectId,方案id
        /// </summary>
        [Column()]
        public int ProjectId { get; set; }


        /// <summary>
        /// AddTime,追加时间
        /// </summary>
        [Column()]
        public DateTime AddTime { get; set; }


        /// <summary>
        /// AddMoney,追加金额
        /// </summary>
        [Column(Size = 6)]
        public decimal AddMoney { get; set; }


        /// <summary>
        /// AddState,支付状态
        /// 0=追加失败
        /// 1=等待处理
        /// 3=通过
        /// </summary>
        [Column()]
        public int AddState { get; set; }


        /// <summary>
        /// Type,类型
        /// 0=取消
        /// 1=追加
        /// </summary>
        [Column()]
        public int Type { get; set; }


        #endregion

        #region link objects

        /// <summary>
        /// DayWinProjectRiskMargin.DayWinProject,
        /// </summary>
        [Relation("this.ProjectId=out.ProjectId")]
        public DayWinProject DayWinProject { get; set; }



        #endregion
    }
    #endregion
    #region DayWinProjectRiskMarginProperties
    public static partial class DayWinProjectRiskMargin_
    {

        private static DayWinProjectRiskMarginDescriptor instance = new DayWinProjectRiskMarginDescriptor("");

        /// <summary>
        /// 全部字段
        /// </summary>
        public static PropertyExpression[] ALL { get { return instance.ALL; } }


        /// <summary>
        /// ProjectRiskMarginId,主键
        /// </summary>
        public static PropertyExpression ProjectRiskMarginId { get { return instance.ProjectRiskMarginId; } }
        /// <summary>
        /// ProjectId,方案id
        /// </summary>
        public static PropertyExpression ProjectId { get { return instance.ProjectId; } }
        /// <summary>
        /// AddTime,追加时间
        /// </summary>
        public static PropertyExpression AddTime { get { return instance.AddTime; } }
        /// <summary>
        /// AddMoney,追加金额
        /// </summary>
        public static PropertyExpression AddMoney { get { return instance.AddMoney; } }
        /// <summary>
        /// AddState,支付状态
        /// 0=追加失败
        /// 1=等待处理
        /// 3=通过
        /// </summary>
        public static PropertyExpression AddState { get { return instance.AddState; } }
        /// <summary>
        /// Type,类型
        /// 0=取消
        /// 1=追加
        /// </summary>
        public static PropertyExpression Type { get { return instance.Type; } }



        /// <summary>
        /// DayWinProjectRiskMargin.DayWinProject,
        /// </summary>
        public static DayWinProjectDescriptor DayWinProject { get { return instance.DayWinProject; } }

        public static IEnumerable<PropertyExpression> Exclude(params PropertyExpression[] properties)
        {
            return instance.Exclude(properties);
        }

    }
    #endregion
    #region DayWinProjectRiskMarginDescriptor
    public partial class DayWinProjectRiskMarginDescriptor : ObjectDescriptorBase
    {

        public DayWinProjectRiskMarginDescriptor(string prefix)
            : base(prefix)
        {

            this._ProjectRiskMarginId = new PropertyExpression(prefix + "ProjectRiskMarginId");
            this._ProjectId = new PropertyExpression(prefix + "ProjectId");
            this._AddTime = new PropertyExpression(prefix + "AddTime");
            this._AddMoney = new PropertyExpression(prefix + "AddMoney");
            this._AddState = new PropertyExpression(prefix + "AddState");
            this._Type = new PropertyExpression(prefix + "Type");
            ALL = new PropertyExpression[] { this._ProjectRiskMarginId, this._ProjectId, this._AddTime, this._AddMoney, this._AddState, this._Type };
        }


        private PropertyExpression _ProjectRiskMarginId;
        /// <summary>
        /// ProjectRiskMarginId,主键
        /// </summary>
        public PropertyExpression ProjectRiskMarginId { get { return _ProjectRiskMarginId; } }
        private PropertyExpression _ProjectId;
        /// <summary>
        /// ProjectId,方案id
        /// </summary>
        public PropertyExpression ProjectId { get { return _ProjectId; } }
        private PropertyExpression _AddTime;
        /// <summary>
        /// AddTime,追加时间
        /// </summary>
        public PropertyExpression AddTime { get { return _AddTime; } }
        private PropertyExpression _AddMoney;
        /// <summary>
        /// AddMoney,追加金额
        /// </summary>
        public PropertyExpression AddMoney { get { return _AddMoney; } }
        private PropertyExpression _AddState;
        /// <summary>
        /// AddState,支付状态
        /// 0=追加失败
        /// 1=等待处理
        /// 3=通过
        /// </summary>
        public PropertyExpression AddState { get { return _AddState; } }
        private PropertyExpression _Type;
        /// <summary>
        /// Type,类型
        /// 0=取消
        /// 1=追加
        /// </summary>
        public PropertyExpression Type { get { return _Type; } }



        private DayWinProjectDescriptor _DayWinProject;
        public DayWinProjectDescriptor DayWinProject
        {
            get
            {
                if (_DayWinProject == null) _DayWinProject = new DayWinProjectDescriptor(base.Prefix + "DayWinProject.");
                return _DayWinProject;
            }
        }
    }
    #endregion


    #region DayWinProjectRiskMargins
    /// <summary>
    /// DayWinProjectRiskMargin,天天赢保证金追加
    /// </summary>
    [Table]
    public partial class DayWinProjectRiskMargins : EntityList<DayWinProjectRiskMargin>
    {

    }
    #endregion


    #region WeekWinProjectRiskMargin
    /// <summary>
    /// WeekWinProjectRiskMargin,周周盈保证金追加
    /// </summary>
    [Table]
    public partial class WeekWinProjectRiskMargin
    {

        public WeekWinProjectRiskMargin()
        {

            AddTime = DateTime.Now;

        }
        #region propertys

        /// <summary>
        /// ProjectRiskMarginId,主键
        /// </summary>
        [Column(IsPrimaryKey = true)]
        [MySqlColumn(IsIdentity = true)]
        public int ProjectRiskMarginId { get; set; }


        /// <summary>
        /// ProjectId,方案id
        /// </summary>
        [Column()]
        public int ProjectId { get; set; }


        /// <summary>
        /// AddTime,追加时间
        /// </summary>
        [Column()]
        public DateTime AddTime { get; set; }


        /// <summary>
        /// AddMoney,追加金额
        /// </summary>
        [Column(Size = 6)]
        public decimal AddMoney { get; set; }


        /// <summary>
        /// AddState,支付状态
        /// 0=追加失败
        /// 1=等待处理
        /// 3=通过
        /// </summary>
        [Column()]
        public int AddState { get; set; }


        /// <summary>
        /// Type,类型
        /// 0=取消
        /// 1=追加
        /// </summary>
        [Column()]
        public int Type { get; set; }


        #endregion

        #region link objects

        /// <summary>
        /// WeekWinProjectRiskMargin.WeekWinProject,
        /// </summary>
        [Relation("this.ProjectId=out.ProjectId")]
        public WeekWinProject WeekWinProject { get; set; }



        #endregion
    }
    #endregion
    #region WeekWinProjectRiskMarginProperties
    public static partial class WeekWinProjectRiskMargin_
    {

        private static WeekWinProjectRiskMarginDescriptor instance = new WeekWinProjectRiskMarginDescriptor("");

        /// <summary>
        /// 全部字段
        /// </summary>
        public static PropertyExpression[] ALL { get { return instance.ALL; } }


        /// <summary>
        /// ProjectRiskMarginId,主键
        /// </summary>
        public static PropertyExpression ProjectRiskMarginId { get { return instance.ProjectRiskMarginId; } }
        /// <summary>
        /// ProjectId,方案id
        /// </summary>
        public static PropertyExpression ProjectId { get { return instance.ProjectId; } }
        /// <summary>
        /// AddTime,追加时间
        /// </summary>
        public static PropertyExpression AddTime { get { return instance.AddTime; } }
        /// <summary>
        /// AddMoney,追加金额
        /// </summary>
        public static PropertyExpression AddMoney { get { return instance.AddMoney; } }
        /// <summary>
        /// AddState,支付状态
        /// 0=追加失败
        /// 1=等待处理
        /// 3=通过
        /// </summary>
        public static PropertyExpression AddState { get { return instance.AddState; } }
        /// <summary>
        /// Type,类型
        /// 0=取消
        /// 1=追加
        /// </summary>
        public static PropertyExpression Type { get { return instance.Type; } }



        /// <summary>
        /// WeekWinProjectRiskMargin.WeekWinProject,
        /// </summary>
        public static WeekWinProjectDescriptor WeekWinProject { get { return instance.WeekWinProject; } }

        public static IEnumerable<PropertyExpression> Exclude(params PropertyExpression[] properties)
        {
            return instance.Exclude(properties);
        }

    }
    #endregion
    #region WeekWinProjectRiskMarginDescriptor
    public partial class WeekWinProjectRiskMarginDescriptor : ObjectDescriptorBase
    {

        public WeekWinProjectRiskMarginDescriptor(string prefix)
            : base(prefix)
        {

            this._ProjectRiskMarginId = new PropertyExpression(prefix + "ProjectRiskMarginId");
            this._ProjectId = new PropertyExpression(prefix + "ProjectId");
            this._AddTime = new PropertyExpression(prefix + "AddTime");
            this._AddMoney = new PropertyExpression(prefix + "AddMoney");
            this._AddState = new PropertyExpression(prefix + "AddState");
            this._Type = new PropertyExpression(prefix + "Type");
            ALL = new PropertyExpression[] { this._ProjectRiskMarginId, this._ProjectId, this._AddTime, this._AddMoney, this._AddState, this._Type };
        }


        private PropertyExpression _ProjectRiskMarginId;
        /// <summary>
        /// ProjectRiskMarginId,主键
        /// </summary>
        public PropertyExpression ProjectRiskMarginId { get { return _ProjectRiskMarginId; } }
        private PropertyExpression _ProjectId;
        /// <summary>
        /// ProjectId,方案id
        /// </summary>
        public PropertyExpression ProjectId { get { return _ProjectId; } }
        private PropertyExpression _AddTime;
        /// <summary>
        /// AddTime,追加时间
        /// </summary>
        public PropertyExpression AddTime { get { return _AddTime; } }
        private PropertyExpression _AddMoney;
        /// <summary>
        /// AddMoney,追加金额
        /// </summary>
        public PropertyExpression AddMoney { get { return _AddMoney; } }
        private PropertyExpression _AddState;
        /// <summary>
        /// AddState,支付状态
        /// 0=追加失败
        /// 1=等待处理
        /// 3=通过
        /// </summary>
        public PropertyExpression AddState { get { return _AddState; } }
        private PropertyExpression _Type;
        /// <summary>
        /// Type,类型
        /// 0=取消
        /// 1=追加
        /// </summary>
        public PropertyExpression Type { get { return _Type; } }



        private WeekWinProjectDescriptor _WeekWinProject;
        public WeekWinProjectDescriptor WeekWinProject
        {
            get
            {
                if (_WeekWinProject == null) _WeekWinProject = new WeekWinProjectDescriptor(base.Prefix + "WeekWinProject.");
                return _WeekWinProject;
            }
        }
    }
    #endregion


    #region WeekWinProjectRiskMargins
    /// <summary>
    /// WeekWinProjectRiskMargin,周周盈保证金追加
    /// </summary>
    [Table]
    public partial class WeekWinProjectRiskMargins : EntityList<WeekWinProjectRiskMargin>
    {

    }
    #endregion


    #region ProjectPrincipal
    /// <summary>
    /// ProjectPrincipal,股票配资本金的追加
    /// </summary>
    [Table]
    public partial class ProjectPrincipal
    {

        public ProjectPrincipal()
        {

            AddTime = DateTime.Now;

        }
        #region propertys

        /// <summary>
        /// ProjectPrincipalId,主键
        /// </summary>
        [Column(IsPrimaryKey = true)]
        [MySqlColumn(IsIdentity = true)]
        public int ProjectPrincipalId { get; set; }


        /// <summary>
        /// ProjectId,方案id
        /// </summary>
        [Column()]
        public int ProjectId { get; set; }


        /// <summary>
        /// AddTime,追加时间
        /// </summary>
        [Column()]
        public DateTime AddTime { get; set; }


        /// <summary>
        /// AddMoney,追加金额
        /// </summary>
        [Column(Size = 6)]
        public decimal AddMoney { get; set; }


        /// <summary>
        /// AddState,支付状态
        /// 0=追加失败
        /// 1=等待处理
        /// 3=通过
        /// </summary>
        [Column()]
        public int AddState { get; set; }


        /// <summary>
        /// Type,类型
        /// 0=取消
        /// 1=追加
        /// </summary>
        [Column()]
        public int Type { get; set; }


        #endregion

        #region link objects

        /// <summary>
        /// ProjectPrincipal.Project,
        /// </summary>
        [Relation("this.ProjectId=out.ProjectId")]
        public Project Project { get; set; }



        #endregion
    }
    #endregion
    #region ProjectPrincipalProperties
    public static partial class ProjectPrincipal_
    {

        private static ProjectPrincipalDescriptor instance = new ProjectPrincipalDescriptor("");

        /// <summary>
        /// 全部字段
        /// </summary>
        public static PropertyExpression[] ALL { get { return instance.ALL; } }


        /// <summary>
        /// ProjectPrincipalId,主键
        /// </summary>
        public static PropertyExpression ProjectPrincipalId { get { return instance.ProjectPrincipalId; } }
        /// <summary>
        /// ProjectId,方案id
        /// </summary>
        public static PropertyExpression ProjectId { get { return instance.ProjectId; } }
        /// <summary>
        /// AddTime,追加时间
        /// </summary>
        public static PropertyExpression AddTime { get { return instance.AddTime; } }
        /// <summary>
        /// AddMoney,追加金额
        /// </summary>
        public static PropertyExpression AddMoney { get { return instance.AddMoney; } }
        /// <summary>
        /// AddState,支付状态
        /// 0=追加失败
        /// 1=等待处理
        /// 3=通过
        /// </summary>
        public static PropertyExpression AddState { get { return instance.AddState; } }
        /// <summary>
        /// Type,类型
        /// 0=取消
        /// 1=追加
        /// </summary>
        public static PropertyExpression Type { get { return instance.Type; } }



        /// <summary>
        /// ProjectPrincipal.Project,
        /// </summary>
        public static ProjectDescriptor Project { get { return instance.Project; } }

        public static IEnumerable<PropertyExpression> Exclude(params PropertyExpression[] properties)
        {
            return instance.Exclude(properties);
        }

    }
    #endregion
    #region ProjectPrincipalDescriptor
    public partial class ProjectPrincipalDescriptor : ObjectDescriptorBase
    {

        public ProjectPrincipalDescriptor(string prefix)
            : base(prefix)
        {

            this._ProjectPrincipalId = new PropertyExpression(prefix + "ProjectPrincipalId");
            this._ProjectId = new PropertyExpression(prefix + "ProjectId");
            this._AddTime = new PropertyExpression(prefix + "AddTime");
            this._AddMoney = new PropertyExpression(prefix + "AddMoney");
            this._AddState = new PropertyExpression(prefix + "AddState");
            this._Type = new PropertyExpression(prefix + "Type");
            ALL = new PropertyExpression[] { this._ProjectPrincipalId, this._ProjectId, this._AddTime, this._AddMoney, this._AddState, this._Type };
        }


        private PropertyExpression _ProjectPrincipalId;
        /// <summary>
        /// ProjectPrincipalId,主键
        /// </summary>
        public PropertyExpression ProjectPrincipalId { get { return _ProjectPrincipalId; } }
        private PropertyExpression _ProjectId;
        /// <summary>
        /// ProjectId,方案id
        /// </summary>
        public PropertyExpression ProjectId { get { return _ProjectId; } }
        private PropertyExpression _AddTime;
        /// <summary>
        /// AddTime,追加时间
        /// </summary>
        public PropertyExpression AddTime { get { return _AddTime; } }
        private PropertyExpression _AddMoney;
        /// <summary>
        /// AddMoney,追加金额
        /// </summary>
        public PropertyExpression AddMoney { get { return _AddMoney; } }
        private PropertyExpression _AddState;
        /// <summary>
        /// AddState,支付状态
        /// 0=追加失败
        /// 1=等待处理
        /// 3=通过
        /// </summary>
        public PropertyExpression AddState { get { return _AddState; } }
        private PropertyExpression _Type;
        /// <summary>
        /// Type,类型
        /// 0=取消
        /// 1=追加
        /// </summary>
        public PropertyExpression Type { get { return _Type; } }



        private ProjectDescriptor _Project;
        public ProjectDescriptor Project
        {
            get
            {
                if (_Project == null) _Project = new ProjectDescriptor(base.Prefix + "Project.");
                return _Project;
            }
        }
    }
    #endregion


    #region ProjectPrincipals
    /// <summary>
    /// ProjectPrincipal,股票配资本金的追加
    /// </summary>
    [Table]
    public partial class ProjectPrincipals : EntityList<ProjectPrincipal>
    {

    }
    #endregion
}
